The Hafsids were a Berber dynasty that ruled Ifriqiya, today's Tunisia with eastern Algeria and western Libya, from 1229 to 1574. Based in Tunis, they were the longest-lasting of the dynasties that succeeded the Almohad Caliphate, and under them Tunis became one of the great cities of the Mediterranean.
From Almohad governors
The family took its name from Abu Hafs Umar al-Hintati, a Masmuda Berber chief and one of the closest companions of Ibn Tumart, founder of the Almohad movement. His descendants governed Ifriqiya for the Almohad caliphs. In 1229, as the Almohads weakened and one caliph rejected Ibn Tumart's doctrine, the governor Abu Zakariya Yahya declared his independence, presenting himself as the true heir of Almohad orthodoxy. He took Constantine, Bejaia and Algiers, and the rulers of Tlemcen and Morocco briefly recognised him.
Al-Mustansir
His son Abu Abdallah Muhammad al-Mustansir took the title of caliph in 1253. After the Mongols destroyed the Abbasid caliphate in Baghdad in 1258, the sharif of Mecca briefly recognised him as caliph. He maintained relations with European states, including Aragon, Sicily and Genoa, and Tunis traded with Italian merchants.
The Eighth Crusade
In 1270 King Louis IX of France, Saint Louis, launched a crusade against Tunis, perhaps hoping to convert al-Mustansir or use Tunisia as a base against Egypt. His army landed near the ruins of Carthage, where dysentery or plague struck the camp, and Louis died. His brother Charles of Anjou, king of Sicily, arrived and negotiated a treaty with al-Mustansir, who paid tribute and allowed Christian merchants and priests, and the crusaders withdrew.
Tunis and its culture
Tunis grew into a cosmopolitan city, with mosques, madrasas and souks, many around the Zaytuna mosque, a major centre of learning. The Hafsids built the first madrasas in Ifriqiya. Andalusian refugees, fleeing the Christian conquests in Spain, settled in Tunisia, bringing crafts, agriculture and culture. Ibn Khaldun, the great historian and author of the Muqaddimah, was born in Tunis in 1332 to an Andalusian family and served the Hafsids before travelling to Fez, Granada and Cairo. Trade with Italian cities, Aragon and others flourished, and privateering against Christian shipping was also important.
Divisions and revival
The Hafsid realm often split, with rival rulers in Tunis, Bejaia and Constantine. The Marinids of Morocco occupied Tunis in 1347 and 1357. In the fifteenth century, Abu Faris Abd al-Aziz, who ruled from 1394 to 1434, and Abu Amr Uthman, from 1435 to 1488, restored unity and prosperity, and launched raids against Malta and Sicily.
Between Spain and the Ottomans
In the sixteenth century, the Hafsids were caught between Spain and the Ottoman Empire. Spain took Bejaia in 1510 and Tripoli in 1510, and the Ottoman corsair brothers Aruj and Hayreddin Barbarossa took Algiers. In 1534 Hayreddin seized Tunis. In 1535 Emperor Charles V led a great expedition, retook Tunis, sacked it and restored the Hafsid ruler Muley Hassan as a Spanish vassal. The Ottomans retook Tunis in 1569, Spain recaptured it in 1573, and in 1574 an Ottoman force under Sinan Pasha took Tunis and the fortress of La Goletta, ending the Hafsid dynasty. Tunisia became an Ottoman province, later ruled by beys.
On our maps
Our maps show the Hafsids from 1279 to 1500. Their largest outline, about 690,000 square kilometres on the 1300 map, is drawn mostly in today's Algeria, with the rest in Libya and Tunisia. Tunis lies inside it throughout, and Algiers and Tripoli until 1492. On the 1530 map the region is part of the Ottoman Empire, though Hafsid rule survived until 1574.
Sources
In pictures
1 images · scroll →From the atlas
Hafsid dynasty on our maps
Borders of Time draws the Hafsid dynasty on 5 of its 54 world maps, from 1279 CE to 1500 CE. Its largest extent is on the 1300 CE map, covering about 688,000 km² (266,000 sq mi), roughly the size of Turkey today.
On that map it borders the Mamluke Sultanate and Morocco.
On the map before it appears (1200 CE), the same area belongs to the Almohad Caliphate. On the map after its last appearance (1530 CE), it belongs to the Ottoman Empire.
- 1279 CE688,000 km²
- 1300 CE688,000 km²
- 1400 CE688,000 km²
- 1492 CE227,000 km²
- 1500 CE227,000 km²
Measured from the historical-basemaps snapshots this atlas uses. Borders in those maps are approximate, especially for early periods.
Quick answers
- When did the Hafsid dynasty exist?
- From 1229 to 1574, about 350 years. The atlas draws it on its maps from 1279 to 1500.
- Where was the Hafsid dynasty?
- At its largest, on the 1300 map, its land lies in today’s Algeria (56%), Libya (24%) and Tunisia (20%). On that map it borders the Mamluke Sultanate and Morocco.
- What was the capital of the Hafsid dynasty?
- Tunis.
- How big was the Hafsid dynasty?
- The Hafsid dynasty was largest on the 1300 map, at about 688,000 km² (266,000 sq mi).