Browse

Hafsid dynasty

Dynasty · 1228 CE – 1574 CE

A Sunni Muslim dynasty of Berber descent that ruled Ifriqiya, in modern Tunisia, western Libya and eastern Algeria, from Tunis between 1229 and 1574.

Significance

The Hafsids ruled from Tunis, introduced the first madrasas to the Maghreb, and held a large stake in trans-Saharan trade as well as trade with Christian Europe.

About

The Hafsid dynasty was a Sunni Muslim dynasty of Berber descent that ruled Ifriqiya, which covers modern Tunisia, western Libya and eastern Algeria, from 1229 to 1574. Its name comes from Abu Hafs Umar ibn Yahya al-Hintati, a Berber of the Hintata confederation who sat on the Council of Ten, one of the highest Almohad bodies, and was a close companion of the Almohad founder Ibn Tumart. To strengthen their legitimacy, the Hafsids also claimed Arab ancestry from the caliph Omar.

Abu Hafs's son Abu Muhammad Abd al-Wahid governed Ifriqiya for the Almohads from 1207 to 1221 from Tunis, the province's administrative capital, and was granted a good deal of autonomy. As Almohad authority weakened, another Hafsid, Abu Zakariya Yahya, took charge of the province, and in 1228 the rebel al-Ma'mun confirmed him there. When al-Ma'mun renounced Almohad doctrine in 1229, Abu Zakariya used it as a pretext to declare himself independent. Around 1236 he took the caliphal title Amir al-Mu'minin. He annexed Constantine and Béjaïa in 1230 and captured Algiers in 1235. In 1242 he took Tlemcen, whose Zayyanid ruler then agreed to recognize his authority. He welcomed refugees from al-Andalus and gave some of them important posts.

His successor Muhammad I al-Mustansir, who reigned from 1249 to 1277, consolidated the state, and trade with Europe and the Sudan region grew. The Marinids recognized his authority in 1258, and the Sharif of Mecca briefly recognized him as caliph in 1259. During his reign the Eighth Crusade under Louis IX of France landed at Carthage, and Louis died of dysentery in 1270. After al-Mustansir died, internal conflict and Aragonese interference split the dynasty into an eastern branch ruling from Tunis and a western branch ruling from Béjaïa and Constantine. Abu Yahya Abu Bakr II of the western branch took Tunis and reunited the realm, reigning from 1318 to 1346.

His death brought a new crisis. The Marinid sultan Abu al-Hasan invaded and conquered Tunis in 1347, but he had to return west in 1349. His son Abu Inan captured Tunis in August 1357 and was soon forced by his own troops to leave. Plague epidemics brought from Sicily caused a considerable fall in population. Unity returned in 1370, when Abu al-Abbas Ahmad II, emir of Béjaïa and Constantine, conquered Tunis. He centralized power more than any earlier Hafsid and began the dynasty's period of greatest power.

Contemporary writers regarded the reign of Abu Faris Abd al-Aziz II, from 1394 to 1434, as the apogee of Hafsid power and prosperity. He retook southern oases, annexed Tripoli and Algiers, and made the Zayyanids of Tlemcen his vassals. The Hafsids also raided Christian shipping. They attacked Malta in 1429 and took 3000 slaves, and their piracy brought crusading counterattacks such as the Barbary crusade of 1390 and the Bona crusade of 1399. Abu Amr Uthman, who reigned from 1435 to 1488, had the longest Hafsid reign. He conquered Tripolitania in 1458, and after his expeditions against Tlemcen in 1462 and 1466 the Zayyanids became his vassals and the Wattasids of Morocco formally accepted his authority.

After Uthman, Hafsid power gradually declined. Spain took Béjaïa in 1510, and in the sixteenth century the Hafsids were caught between Spain and the Ottoman-supported corsairs. The Ottomans took Tunis in 1534, and Charles V restored the Hafsid ruler al-Hasan as a Habsburg tributary a year later. Tunis fell to the Ottomans again in 1569 and was retaken by Don Juan of Austria in 1573. In 1574 the Ottomans conquered it for the last time, ending the dynasty. Its last caliph, Muhammad VI, was taken to Constantinople and executed.

The Hafsid period was also one of cultural activity. The Hafsids introduced the first madrasas to the Maghreb, beginning with the Madrasa al-Shamma'iyya in Tunis in 1238 (some sources say 1249), and the Zaytuna Mosque became the country's leading center of learning. Andalusi migrants served as scribes and officials, and the historian Ibn Khaldun, of Andalusi descent, was born in Tunis. Tunis grew to about 100,000 people by the mid-fourteenth century. The Hafsids also had a large stake in trans-Saharan trade, through caravan routes from Tunis to Timbuktu and from Tripoli to sub-Saharan Africa.

Connections

In chronicles

Open on the globe · Wikidata Q752662