18

The Ḥafṣids

627–982/1229–1574

Tunisia and eastern Algeria

⊘ 627/1229

Yaḥyā I b. ‘Abd al-Wāḥid, Abū Zakariyyā’

⊘ 647/1249

Muḥammad I b. Yaḥyā I, Abū ‘Abdallāh al-Mustanṣir

⊘ 675/1277

Yaḥyā II b. Muḥammad I, Abū Zakariyyā’ al-Wāthiq

⊘ 678/1279

Ibrāhīm I b. Yaḥyā I, Abū Isḥāq, k. 682/1283

681/1282

Usurpation of Aḥmad b. Abī ‘Umāra

⊘ 683/1284

‘Umar I b. Yaḥyā I, Abū Ḥafṣ (after 684/1285 in Tunis only)

⊘ 684/1285

Yaḥyā III b. Ibrāhīm I, Abū Zakariyyā’ al-Muntakhab (in Bougie and Constantine until 689/1299)

⊘ 694/1295

Muḥammad II b. Yaḥyā II, Abū ‘Abdallāh (or Abū ‘Aṣīda)

⊘ 709/1309

Abū Bakr I b. ‘Abd al-Raḥmān, Abū Yaḥyā al-Shahīd (after 709/1309 in Constantine and after 712/1312 in Bougie)

⊘ 709/1309

Khālid I b. Yaḥyā III, Abu ’1-Baqā’

⊘ 711/1311

Zakariyyā’ I b. Aḥmad, al-Liḥyānī, Abū Yaḥyā (in Tunis)

⊘ 717/1317

Muḥammad III b. Zakariyyā’ I, Abū ‘Abdallāh or Abū Ḍarba al-Liḥyānī al-Mustanṣir (in Tunis)

⊘ 718/1318

Abū Bakr II b. Yaḥyā III, Abū Yaḥyā al-Mutawakkil

⊘ 747/1346

‘Umar II b. Abī Bakr II, Abū Ḥafṣ

748/1348

First Marīnid occupation of Tunis

⊘ 750/1350

Aḥmad I b. Abī Bakr II, Abu ’l-‘Abbās al-Faḍl al-Mutawakkil

⊘ 750/1350

Ibrāhīm II b. Abī Bakr II, Abū Isḥāq al-Mustanṣir, first reign

758/1357

Second Marīnid occupation of Constantine and Tunis

⊘ 758/1357

Ibrāhīm II b. Abī Bakr II, second reign (in Tunis until 770/1369; other Ḥafṣid princes in Bougie and Constantine)

770/1369

Khālid II b. Ibrāhīm II, Abu ’1-Baqā’ (in Tunis)

⊘ 772/1370

Aḥmad II b. Muḥammad, Abu ’l-‘Abbās al-Mustanṣir (previously in Bougie and Constantine)

⊘ 796/1394

‘Abd al-‘Azīz b. Aḥmad II, Abū Fāris al-Mutawakkil

837/1434

Muḥammad IV b. Muḥammad al-Manṣūr, Abū ‘Abdallāh al-Muntaṣir

⊘ 839/1435

‘Uthmān b. Muḥammad al-Manṣūr, Abū ‘Amr or ‘Umar

893/1488

IV b. Muḥammad al-Mas‘ūd, Abū Zakariyyā’ Yaḥyā

894/1489

‘Abd al-Mu’min b. Abī Sālim Ibrāhīm, Abū Muḥammad

895/1490

Zakariyyā’ II b. Yaḥyā IV, Abū Yaḥyā

⊘ 899/1494

Muḥammad V b. Abī Muḥammad al-Ḥasan, Abū ‘Abdallāh al-Mutawakkil

⊘ 932/1526

al-Ḥasan b. Muḥammad V, Abū ‘Abdallāh, first reign

941/1534

First Turkish conquest of Tunis by Khayr al-Dīn Barbarossa

942/1535

al-Ḥasan b. Muḥammad V, second reign (as a vassal of the Emperor Charles V)

942/1535

al-Ḥasan b. Muḥammad V, second reign (as a vassal of the Emperor Charles V)

⊘ 950/1543

Aḥmad III b. al-Ḥasan, Abū Zayyān or Ziyān

977/1569

Second Turkish conquest of Tunis by ‘Ulūj ‘Alī

981/1573

Muḥammad VI b. al-Ḥasan, Abū ‘Abdallāh (as a vassal of Spain)

982/1574

Third and definitive Turkish conquest of Tunis from Don John of Austria by Sinān Pasha

The Ḥafṣids, the most important dynasty in the history of later mediaeval Ifrīqiya, derived their name from Shaykh Abū Ḥafṣ ‘Umar al-Hintātī (d. 571/1176), a disciple of the founder of the Almohad movement, Ibn Tūmart (see above, no. 15), and one of ‘Abd al-Mu’min’s commanders. His offspring filled various important offices under the Almohads, including the governorship of Ifīqiya, and, once established as a separate dynasty, the early Ḥafṣids were to continue Almohad traditions in many ways. One of these Ḥafṣid governors, Abū Zakariyyā’ Yaḥyā I, in 627/1229 threw off the authority of the Almohad caliph, alleging that the latter had abandoned the true Mu’minid traditions, and proclaimed himself an independent amīr. He now expanded westwards into the central Maghrib, taking Constantine, Bougie and Algiers, making the ‘Abd al-Wādids of Tlemcen (see above, no. 17) his tributaries, compelling the Marīnids of Morocco to acknowledge him and receiving appeals for help from the beleaguered Muslims of southern Spain. He further began the tradition of close commercial relations in the western Mediterranean with such powers as Angevin Sicily and Aragon. The power of the Ḥafṣids was equally great under his son Abū ‘Abdallāh Muḥammad I, who repelled the attacks of Louis IX of France and Charles of Anjou (the Crusade of 668/1270), and assumed the titles of caliph and ‘Commander of the Faithful’ plus the grandiose honorific of al-Mustanṣir, obtaining these titles from the Sharīf of Mecca and claiming to be the heir of the recently-defunct Baghdad ‘Abbāsids (see above, no. 3, 1).

Towards the end of the thirteenth century, however, the unity of the Ḥafṣid amirate became loosened, with Bougie and Constantine, in particular, tending to fall under the authority of separate rulers from the Ḥafṣid family, and with southern Tunisia and the Djerid region also throwing off the control of Tunis during periods of weak rule. At times, there were several contenders for the throne in Tunis, with claimants ruling in various towns, and during the course of the fourteenth century the Ḥafṣid capital was twice occupied temporarily by the Marīnids (see above, no. 16). The dynasty rallied in the fifteenth century under such strong rulers as Abū Fāris ‘Abd al-‘Azīz al-Mutawakkil and his grandson Abū ‘Umar ‘Uthmān, but in the early sixteenth century the establishment of the Turks in Algiers and other ports and the inability of the Ḥafṣids to curb corsair depredations in the western Mediterranean invited attacks and reprisals by the Christians. A Turkish occupation of Tunis in 941/1535 drove out the Ḥafṣid ruler, who was only restored after the Emperor Charles V had planted a Spanish garrison at La Goletta later in that year. The last Ḥafṣids retained a precarious authority with Spanish help against the Turks; in 981/1573 Don John of Austria took Tunis, but in the following year the Ottoman commander Sinān Pasha recaptured it and carried off the last Ḥafṣid captive to Istanbul.

Tunis under the Ḥafṣids enjoyed a great resurgence of prosperity. Before the disruptive activity of the Barbary pirates caused a deterioration in relations, the Ḥafṣids had fruitful commercial treaties with Anjevin Sicily, with the Italian and southern French cities and with Aragon. Both the economy and the culture of the land also benefited from the influx of Spanish Muslim refugees (among whom were the forebears of the historian Ibn Khaldūn). Tunis became a great artistic and intellectual centre, and it was the Ḥafṣids who in the thirteenth century introduced the madrasa system of education already flourishing in the central and eastern lands of Islam.

Lane-Poole, 49–50, 52–3; Zambaur, 74–6; Album, 17.

EI2 ‘Ḥafṣids’ (H. R. Idris).

R. Brunschvig, La Berbérie orientale sous les Ḥafṣides des origines à la fin du XVe siècle, 2 vols, Paris 1940–7, with genealogical tables at II, 446.

H. W. Hazard, The Numismatic History of Late Medieval North Africa, 69–75, 159–81, 273–4, 284.

If you find an error or have any questions, please email us at admin@erenow.org. Thank you!