Ottoman Tunisia (also known as the Eyalet of Tunis or the Regency of Tunis) was a semi-autonomous territory of the Ottoman Empire. It existed from the 16th to the 19th century and was located roughly in present-day Tunisia (and parts of modern 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. Their rule came to an end following the French conquest of Tunisia in 1881.
Tunis was initially ruled from the Ottoman Regency of Algiers; however, the Ottomans established a separate governor (pasha) for Tunis, whose authority was backed by Janissaries under his command. As a result, Tunis began to function as a separate province with a considerable degree of autonomy. Although Algiers occasionally contested this, Tunis maintained its autonomous status. Like other distant Ottoman territories, the governing councils responsible for administering the province consisted mostly of Ottoman elites (Turks, Egyptians, Albanians, etc.) from other parts of the empire. State affairs were primarily conducted in Ottoman Turkish.
At the center of what was then known as the Barbary Coast, Barbary corsairs used North African ports like Algiers, Tunis, and Tripoli as bases to target European shipping and, at the height of their power, to raid ports and towns along Europe's Mediterranean coast. During these raids, Barbary pirates frequently captured European sailors and civilians, who were either ransomed or sold into slavery. For centuries, Tunis was among the principal centers of the Barbary slave trade. Eventually, a prolonged decline in raids and the increasing naval power of European states, culminating in a series of punitive wars by the United States later joined by Sweden and the Kingdom of Sicily, brought an end to the raids and the slave trade.
By the end of the Ottoman period, Tunisia had experienced a considerable loss in its territory. The decay in Ottoman authority throughout the 18th and 19th centuries led to conflicts with rival provinces, especially Tripoli, and foreign encroachment on their territory. In the 19th century, Tunisian rulers observed the ongoing political and social reforms occurring throughout the Ottoman Empire. Inspired by the Turkish model, the Bey of Tunis began modernizing Tunisia's administration, infrastructure, and economy, though these modernization efforts were expensive and would lead to Tunisia amassing a considerable amount of foreign debt. In 1881, France used this as a pretext to establish a Protectorate, effectively taking control over the territory.
The legacy of the centuries-long period of Ottoman rule in Tunisia is evident in the presence of Tunisia's large Turkish community. Historically, children of Turkish fathers and native mothers were known as the Kouloughlis.
History
Mediterranean rivalries
In the 16th century, control of the western Mediterranean was contested between the Spaniards and the Turks, both confident due to recent triumphs and subsequent expansion. In 1492, Spain completed its centuries-long Reconquista of the Iberian Peninsula, followed by the establishment of the first Spanish settlements in America. Spain then devised an African policy, establishing a series of presidios (a type of fortification against attacks) in port cities along the African coast.In formulating an African policy for Spain, the clergy argued for attempting a complete conquest; however, King Ferdinand ultimately decided on limited objectives: constructing strong forts in a string of port cities. See: Henry Kamen, Empire: How Spain Became a World Power 1492–1763 (New York: HarperCollins, 2003), pp. 29–31. After the reconquest, several such port cities, e.g., Oran, were favorable to Spanish influence. Kamen (2003), pp. 29–30.J. H. Elliot, Imperial Spain, 1469–1716 (New York: St. Martin's, 1963; reprint, Meridian, 1977), pp. 52–55. The Ottoman Turks achieved their long-term ambition of capturing Constantinople in 1453, then successfully expanded further into the Balkans (1459–1482), and later conquered Syria and Egypt (1516–1517).
Turkish Barbary corsairs operated from bases in the Maghreb.Wayne S. Vucinich, The Ottoman Empire: Its Record and Legacy (Princeton: C. Van Nostrand, 1965), pp. 15–18.Stanford J. Shaw, History of the Ottoman Empire and Modern Turkey (Cambridge University Press, 1976), vol. I, pp. 55–66, 83–85. Spain captured and occupied several ports in North Africa, including Mers-el-Kebir (1505), Oran (1509), and Tripoli and Bougie (1510). Spain also established treaty relations with several other ports. These agreements included Algiers (1510), which granted Spain occupation of the offshore island of Peñón de Argel. Spain also reached agreements with Tlemcen (1511), a city about 60 km inland, and with Tunis, whose Spanish alliance lasted inconsistently for decades. Near Tunis, the port of Goletta was later occupied by Spanish forces, who built a large and strong presidio there. They also constructed an aqueduct to Tunis for use by the kasbah.Henry Kamen, Empire. How Spain became a world power 1492–1763 (New York: HarperCollins, 2003) at 30–31 (Mers-el-Kebir), 32–33 (Oran), 31–32 (Bougie and Tripoli), 32 (Algiers).Charles-André Julien, Histoire de l'Afrique du Nord (Paris: Payot 1931, 1961), translated as History of North Africa. From the Arab conquest to 1830 (London: Routledge, Kegan Paul 1970) at 279, 294 (Tlemcen), 282–284, 297–300 (Tunis).William Spencer, Algiers in the Age of the Corsairs (University of Oklahoma 1976) at 15–17, 22. La Goulette was occupied by the Spanish long after its use by the Turkish brothers Aruj and Khayr al-Din (see below).
The Hafsid dynasty had ruled Tunisia since 1227. It experienced periods of prestige as the leading state of the Maghreb, as well as times of struggle. Over the centuries, extensive trade with European merchants persisted, leading to the establishment of state treaties. However, the Hafsids also harbored corsairs who raided merchant shipping. In the 15th century, the Hafsids employed a Christian force, primarily consisting of Catalans, as bodyguards. By the 16th century, Hafsid rule weakened, often confined to Tunis alone. The last three Hafsid sultans—al-Hasan, his son Ahmad, and his brother Muhammad—engaged in inconsistent treaties with Spain.Julian, History of North Africa (1961; 1970) at 148 (corsairs), 153 (Catalan bodyguard), 158 (European merchants).Jamil M. Abun-Nasr, A History of the Maghrib (Cambridge University 1971) at 148 (14th-century corsairs: Christian and Muslim), 148–149 (15th-century Hafsid's suzerainty over Tlemcen), 163–165 (early Spanish treaties), 177 (last three Hafsid sultans in the 16th century).Spencer, Algiers in the Age of the Corsairs (1976) at 11 (commercial treaty between Tunis and Aragon), 15 (piracy: European and North African), 17 (Hafsid early hub facilitating Turkish corsairs).