Ottoman Tunisia — also known as the Eyalet of Tunis or the Regency of Tunis — was a semi-autonomous territory of the Ottoman Empire, that existed from the 16th to the 19th century, located roughly in present-day Tunisia (and parts of what is now eastern Algeria.)
The Ottoman presence in the Maghreb began with the conquest of Algiers in 1516 by the Ottoman Turkish corsair, Beylerbey Aruj Barbarossa (Oruç Reis). In 1534, the Ottoman Navy under the command of Kapudan Pasha Hayreddin Barbarossa, Aruj's younger brother, captured Tunis from the Hafsid dynasty. Less than a year later, in 1535, the Holy Roman Emperor, Charles V sent a multinational invasion force to wrest back control of Tunis, overwhelming the Ottoman garrison. Following the final Ottoman reconquest of Tunis from Spain in 1574, the Ottomans maintained control of Tunis for over three centuries. Ottoman rule came to an end following the French conquest of Tunisia in 1881.
