Africa · The Sahelian empires
Hafsid Dynasty
Kingdom · 1229 – 1574
The Hafsid dynasty ruled Ifriqiya (roughly modern Tunisia, with parts of eastern Algeria and western Libya) from its capital at Tunis for over three centuries, making it the longest-lived of the three successor states that emerged from the collapse of the Almohad Caliphate.
- Type
- Kingdom
- Existed
- 1229 – 1574
- Shown on the map
- 1236–1351, 1363–1571 (2 periods)
- Peak area
- 226k km²
- Region
- Africa
Overview
The Hafsid dynasty ruled Ifriqiya (roughly modern Tunisia, with parts of eastern Algeria and western Libya) from its capital at Tunis for over three centuries, making it the longest-lived of the three successor states that emerged from the collapse of the Almohad Caliphate.
Origins and founding
The dynasty traced its lineage to Abu Hafs Umar al-Hintati, a Berber chief of the Hintata tribe of the High Atlas and a close companion of the Almohad mahdi Ibn Tumart. His descendant Abu Zakariya Yahya served as Almohad governor of Ifriqiya and, amid the empire's disintegration, declared independence at Tunis in 1229. He rapidly expanded, annexing Constantine and Béjaïa in 1230 and Algiers in 1235, and took the caliphal title in 1236/7. Hafsid territory welcomed waves of Muslim refugees fleeing the Christian conquest of al-Andalus, which enriched its cities and agriculture.
Political history
Under al-Mustansir (r. 1249–1277) the state reached a first peak, briefly recognized across the Maghreb; his reign saw the Eighth Crusade of Louis IX of France end with the king's death outside Tunis in 1270. After al-Mustansir's death the realm split into rival branches centered on Tunis and Béjaïa/Constantine, a weakness that the Marinids of Morocco exploited with occupations in 1347 and 1357. The dynasty recovered to a celebrated apogee under Abu al-Abbas Ahmad II (r. 1370–1394), Abu Faris Abd al-Aziz II (r. 1394–1434), and Abu 'Amr 'Uthman (r. 1435–1488), the latter briefly acknowledged as suzerain across the whole Maghreb.
Economy and culture
Hafsid prosperity rested on Mediterranean commerce: Tunis, Béjaïa, and other ports traded grain, leather, and textiles with Italian and Catalan merchants, who maintained fondacos in the cities. Culturally the dynasty introduced the madrasa to the Maghreb and presided over a brilliant intellectual life — the historian Ibn Khaldun was born in Hafsid Tunis in 1332.
Religion
The Hafsids were Sunni Muslims of the Maliki school, retaining a strong Almohad institutional legacy while showing notable tolerance toward Jewish communities and resident Christian merchants.
Decline and fall
Caught between Spanish expansion along the coast and Ottoman advance from the east, the kingdom fragmented in the 16th century. The Ottomans took Tunis definitively in 1574, executing the last Hafsid ruler, Muhammad VI.
Legacy
The Hafsids defined a distinct Ifriqiyan statehood centered on Tunis that endured under later regimes; their era fixed Tunis as the region's political and cultural capital, a primacy it still holds.
Common questions
- What was the Hafsid Dynasty?
- The Hafsid dynasty ruled Ifriqiya (roughly modern Tunisia, with parts of eastern Algeria and western Libya) from its capital at Tunis for over three centuries, making it the longest-lived of the three successor states that emerged from the collapse of the Almohad Caliphate.
- When did the Hafsid Dynasty exist?
- The Hafsid Dynasty existed 1229 – 1574. On this map it is drawn 1236–1351, 1363–1571.
- How large was the Hafsid Dynasty?
- At its greatest extent drawn on this map, the Hafsid Dynasty covered about 226,000 km². That is the largest area the border data gives it across the years it is drawn, not necessarily its greatest extent in history.
- Who ruled the Hafsid Dynasty?
- Under al-Mustansir (r. 1249–1277) the state reached a first peak, briefly recognized across the Maghreb; his reign saw the Eighth Crusade of Louis IX of France end with the king's death outside Tunis in 1270. After al-Mustansir's death the realm split into rival branches centered on Tunis and Béjaïa/Constantine, a weakness that the Marinids of Morocco exploited with occupations in 1347 and 1357.
- How did the Hafsid Dynasty end?
- Caught between Spanish expansion along the coast and Ottoman advance from the east, the kingdom fragmented in the 16th century. The Ottomans took Tunis definitively in 1574, executing the last Hafsid ruler, Muhammad VI.
- What did the economy and culture of the Hafsid Dynasty rest on?
- Hafsid prosperity rested on Mediterranean commerce: Tunis, Béjaïa, and other ports traded grain, leather, and textiles with Italian and Catalan merchants, who maintained fondacos in the cities. Culturally the dynasty introduced the madrasa to the Maghreb and presided over a brilliant intellectual life — the historian Ibn Khaldun was born in Hafsid Tunis in 1332.
- Why does the Hafsid Dynasty still matter?
- The Hafsids defined a distinct Ifriqiyan statehood centered on Tunis that endured under later regimes; their era fixed Tunis as the region's political and cultural capital, a primacy it still holds.
Sources
Every source below was consulted while writing this entry.
- Wikipedia — Hafsid dynasty en.wikipedia.org/wiki/Hafsid_dynasty
This entry was written from the sources above and last updated .
This entry was researched and drafted with AI from the sources above, and has not been reviewed by a historian. How entries are made
Text available under CC BY-SA 4.0: reuse it with a credit to The World Through Time and a link to this page. Passages drawing on the Wikipedia articles listed above are also licensed CC BY-SA 4.0 by their contributors.
Border geometry for the map itself comes from Cliopatria v0.12 (Seshat Global History Databank, CC-BY-4.0).
See the Hafsid Dynasty in its world
Open the atlas at 1467 and every neighbour, rival and successor is on screen with it — then drag the slider and watch what happens next.
Open the map at 1467 →