State · Middle East and North Africa

# Hafsid dynasty

1229 – 1574 · 345 years

Came after [Almohad Caliphate](https://app.pastlas.com/state/almohad-caliphate/)

It was founded in 1229, after the Almohad Caliphate.↓ Its borders are first mapped in 1236, around 224,100 km².↓

Its ground peaked in 1344 at 224,300 km².↓ Its line counts 23 rulers, covering 1224 – 1574, the median reign 4 years; 3 of 22 handovers were irregular.↓ The best known of them are Muhammad I al-Mustansir, Abu Zakariya Yahya and Yahya II al-Wathiq.↓ Most of the 30 rows the atlas files under it are people.↓ Its record closes in 1574, after 345 years.↑

Best known for

- [![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Bust_of_Ibn_Khaldun_(Casbah_of_Bejaia%2C_Algeria).jpg/120px-Bust_of_Ibn_Khaldun_(Casbah_of_Bejaia%2C_Algeria).jpg)Ibn Khaldun](https://app.pastlas.com/?sel=Q9294)
- [Eighth Crusade](https://app.pastlas.com/?sel=Q243684)
- [Battle of Djerba](https://app.pastlas.com/?sel=Q613478)
- [![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Hafsid_dinar_-_Tunisia.jpg/120px-Hafsid_dinar_-_Tunisia.jpg)Muhammad I al-Mustansir](https://app.pastlas.com/person/muhammad-i-al-mustansir/)
- [![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Abu_Zakariyya'_Yahya_I_-_Hafsids_AV_Double_Dinar_10000506.jpg/120px-Abu_Zakariyya'_Yahya_I_-_Hafsids_AV_Double_Dinar_10000506.jpg)Abu Zakariya Yahya](https://app.pastlas.com/person/abu-zakariya-yahya/)

345 years

Longer than the Mughal Empire, shorter than Kyivan Rus'

224,000 km²

At its height in 1344 · about the size of Laos

23 rulers

the Hafsid sultan

6 wars and battles

More per century than 87% of states · 30 entries in all

[Open the live map at 1344](https://app.pastlas.com/?v=map&y=1344&sel=Q752662)[Everything beside it](https://app.pastlas.com/?v=timeline&sel=Q752662&t=1194,1609&y=1344)

[![Map: Hafsid dynasty in 1344, its borders in gold among its neighbours](https://app.pastlas.com/state/hafsid-dynasty/map.svg)](https://app.pastlas.com/?v=map&y=1344&sel=Q752662)

*Area held from 1254 to 1554, peak 224,200 km² in 1304*

Beside it on the map in 1344: [Marinid dynasty](https://app.pastlas.com/state/marinid-dynasty/), [Mamluk Sultanate](https://app.pastlas.com/state/mamluk-sultanate/), [Byzantine Empire](https://app.pastlas.com/state/byzantine-empire/), [Crown of Aragon](https://app.pastlas.com/state/crown-of-aragon/), [Kingdom of Sicily](https://app.pastlas.com/state/kingdom-of-sicily/) and [Kingdom of Naples](https://app.pastlas.com/state/kingdom-of-naples/).How far it reached, year by year: its ground inside the borders Cliopatria draws (CC BY 4.0), measured on an equal-area grid; the map shows it at its largest, with the cities of the year.

The story

## Its key moments

### Key events

The best-known wars, battles, risings and changes of regime the record files under it; a war within a war is folded into it.

### Eighth Crusade

battle · 1270

[Watch the borders in 1270](https://app.pastlas.com/?v=map&y=1270&sel=Q752662)[On the timeline](https://app.pastlas.com/?v=timeline&sel=Q243684&t=1260,1280)

### Barbary Crusade

war · 1390

[Watch the borders in 1390](https://app.pastlas.com/?v=map&y=1390&sel=Q752662)[On the timeline](https://app.pastlas.com/?v=timeline&sel=Q1788488&t=1380,1400)

### Conquest of Tunis (1534)

battle · 1534

[Watch the borders in 1534](https://app.pastlas.com/?v=map&y=1534&sel=Q752662)[On the timeline](https://app.pastlas.com/?v=timeline&sel=Q5245689&t=1524,1544)

### Siege of Tripoli (1551)

battle · 1551

[Watch the borders in 1551](https://app.pastlas.com/?v=map&y=1551&sel=Q752662)[On the timeline](https://app.pastlas.com/?v=timeline&sel=Q2860095&t=1541,1561)

### Battle of Djerba

battle · 1560

[Watch the borders in 1560](https://app.pastlas.com/?v=map&y=1560&sel=Q752662)[On the timeline](https://app.pastlas.com/?v=timeline&sel=Q613478&t=1550,1570)

![Hafsid dynasty in 1556, last mapped](https://app.pastlas.com/state/hafsid-dynasty/map-last.svg)![Hafsid dynasty in 1344, at its largest](https://app.pastlas.com/state/hafsid-dynasty/map.svg)

The rise and the fall in one frame: drag across it from 1344, at its largest at 224,300 km², to 1556, last mapped at 88,100 km². Open the live map in [1344](https://app.pastlas.com/?v=map&y=1344&sel=Q752662) or [1556](https://app.pastlas.com/?v=map&y=1556&sel=Q752662).

### Before and after

The states the record files it as replacing or following, and those that replaced or followed it - Wikidata's own statements, each read from this state's side.

### Before it

- [Almohad Caliphate](https://app.pastlas.com/state/almohad-caliphate/) · follows · 1121 – 1269

### Where it sits in time

*Hafsid dynasty on a timeline from 3000 BCE to 2026: 1229 to 1574*

Five thousand years, 3000 BCE to 2026; the state in gold, what it replaced or followed and what replaced or followed it in grey.

Its people

## Lives across the Hafsid dynasty

One axis for everyone, so you can see who knew whom: the best-known, ordered by birth.

1200130014001500

- [Abd-Allah](https://app.pastlas.com/person/abd-allah/)sultan1200 – 1229
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Abu_Zakariyya'_Yahya_I_-_Hafsids_AV_Double_Dinar_10000506.jpg/120px-Abu_Zakariyya'_Yahya_I_-_Hafsids_AV_Double_Dinar_10000506.jpg)[Abu Zakariya Yahya](https://app.pastlas.com/person/abu-zakariya-yahya/)sultan · poet1203 – 1249
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Hafsid_dinar_-_Tunisia.jpg/120px-Hafsid_dinar_-_Tunisia.jpg)[Muhammad I al-Mustansir](https://app.pastlas.com/person/muhammad-i-al-mustansir/)sultan1228 – 1277
- [Abu Ishaq Ibrahim I](https://app.pastlas.com/person/abu-ishaq-ibrahim-i/)sultan1234 – 1283
- [Abu Hafs Umar bin Yahya](https://app.pastlas.com/person/abu-hafs-umar-bin-yahya/)sultan1245 – 1295
- [Yahya II al-Wathiq](https://app.pastlas.com/person/yahya-ii-al-wathiq/)sultan1249 – 1280
- [Abu Asida Muhammad II](https://app.pastlas.com/person/abu-asida-muhammad-ii/)sultan1279 – 1308
- [Abu Yahya Abu Bakr ash-Shahid](https://app.pastlas.com/person/abu-yahya-abu-bakr-ash-shahid/)sultan1280 – 1309
- [Abu-l-Baqa Khalid An-Nasr](https://app.pastlas.com/person/abu-l-baqa-khalid-an-nasr/)sultan1283 – 1311
- [Abu Yahya Abu Bakr II](https://app.pastlas.com/person/abu-yahya-abu-bakr-ii/)sultan1293 – 1346
- [Abu al-Abbas Ahmad II](https://app.pastlas.com/person/abu-al-abbas-ahmad-ii/)sultan1329 – 1394
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Bust_of_Ibn_Khaldun_(Casbah_of_Bejaia%2C_Algeria).jpg/120px-Bust_of_Ibn_Khaldun_(Casbah_of_Bejaia%2C_Algeria).jpg)[Ibn Khaldun](https://app.pastlas.com/?sel=Q9294)philosopher · theologian1332 – 1406
- [Abu Ishaq Ibrahim II](https://app.pastlas.com/person/abu-ishaq-ibrahim-ii/)sultan1336 – 1369
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Hafsid_Dinar_-_Abu_Amr_Othman.jpg/120px-Hafsid_Dinar_-_Abu_Amr_Othman.jpg)[Abu 'Amr 'Uthman](https://app.pastlas.com/person/abu-amr-uthman/)sultan1418 – 1488
- [Abu Yahya Zakariya](https://app.pastlas.com/person/abu-yahya-zakariya/)sultan1490 – 1494
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Mulay-hacan_le_hafcide.jpg/120px-Mulay-hacan_le_hafcide.jpg)[Abu Abdallah Muhammad V al-Hasan](https://app.pastlas.com/person/abu-abdallah-muhammad-v-al-hasan/)sultan1505 – 1549
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/58/0_Le_Sultan_Mulay_Ahmad_de_Tunis_-_Rubens_-_Museum_of_Fine_Arts%2C_Boston_-_40.2_-(2).JPG/120px-0_Le_Sultan_Mulay_Ahmad_de_Tunis_-_Rubens_-_Museum_of_Fine_Arts%2C_Boston_-_40.2_-(2).JPG)[Abu al-Abbas Ahmad III](https://app.pastlas.com/person/abu-al-abbas-ahmad-iii/)sultan1505 – 1575

Statesmen and generalsWriters, artists and thinkersLived on after it ended[All its people on the timeline →](https://app.pastlas.com/?v=timeline&sel=Q752662&t=1200,1575)

How it was governed

## 23 sultans

23 sultans on record, 1224 to 1574; a reign lasted 4 years at the median. Each bar is a reign, as long as it lasted.

*23 reigns from 1229 to 1574, each as long as it lasted, coloured by how it ended*

a second row: a reign that began before the last had ended — rival claimants, or a shared throne

How their terms ended, where it is known (19 of 23):Deposed or removed 1Died in office 13Left office alive 5Not on record 4

### Rulers

The line of Hafsid sultan.

How they died, where the record says: died of natural causes 3.

| Ruler | Reign | Length | How it ended · source | To the ruler before |
| --- | --- | --- | --- | --- |
| 13th century · 7 reigns · 1 killed or removed |  |  |  |  |
| [Abd-Allah](https://app.pastlas.com/person/abd-allah/) · aged 24 | 1224 – 1228 | 4 years | left office alive read off the dates alone |  |
| [Abu Zakariya Yahya](https://app.pastlas.com/person/abu-zakariya-yahya/) · aged 26 | 1229 – 1249 | 20 years | died in office read off the dates alone | sibling |
| [Muhammad I al-Mustansir](https://app.pastlas.com/person/muhammad-i-al-mustansir/) · aged 21 | 1249 – 1277 | 28 years | died in office read off the dates alone | child |
| [Yahya II al-Wathiq](https://app.pastlas.com/person/yahya-ii-al-wathiq/) · aged 27 | 1276 – 1279 | 3 years | left office alive read off the dates alone | child |
| [Abu Ishaq Ibrahim I](https://app.pastlas.com/person/abu-ishaq-ibrahim-i/) · aged 45 | 1279 – 1283 | 4 years | deposed read from the ruler's own article |  |
| [Abu Hafs Umar bin Yahya](https://app.pastlas.com/person/abu-hafs-umar-bin-yahya/) · aged 39 | 1284 – 1295 | 11 years | died in office read off the dates alone | sibling |
| [Abu Asida Muhammad II](https://app.pastlas.com/person/abu-asida-muhammad-ii/) · aged 16 | 1295 – 1309 | 14 years | dates disagree read off the dates alone |  |
| 14th century · 8 reigns |  |  |  |  |
| [Abu Yahya Abu Bakr ash-Shahid](https://app.pastlas.com/person/abu-yahya-abu-bakr-ash-shahid/) · aged 29 | 1309 – 1309 | under a year | died in office read off the dates alone |  |
| [Abu-l-Baqa Khalid An-Nasr](https://app.pastlas.com/person/abu-l-baqa-khalid-an-nasr/) · aged 26 | 1309 – 1311 | 2 years | died in office read off the dates alone |  |
| [Abu Yahya Abu Bakr II](https://app.pastlas.com/person/abu-yahya-abu-bakr-ii/) · aged 25 | 1318 – — | no end recorded | ending not on record | sibling |
| [Abu Hafs Umar ben Abi Bakr](https://app.pastlas.com/person/abu-hafs-umar-ben-abi-bakr/) · aged 36 | 1346 – — | no end recorded | ending not on record | child |
| [Al-Fadl Àhmad](https://app.pastlas.com/person/al-fadl-ahmad/) · aged 39 | 1349 – 1350 | 1 year | died in office read off the dates alone | sibling |
| [Abu Ishaq Ibrahim II](https://app.pastlas.com/person/abu-ishaq-ibrahim-ii/) · aged 14 | 1350 – 1369 | 19 years | died in office read off the dates alone | child |
| [Abu-l-Baqà Khàlid](https://app.pastlas.com/person/abu-l-baqa-khalid/) · aged 19 | 1369 – 1371 | 2 years | died in office read off the dates alone | child |
| [Abu al-Abbas Ahmad II](https://app.pastlas.com/person/abu-al-abbas-ahmad-ii/) · aged 42 | 1371 – 1394 | 23 years | died in office read off the dates alone |  |
| 15th century · 5 reigns |  |  |  |  |
| [Abu 'Amr 'Uthman](https://app.pastlas.com/person/abu-amr-uthman/) · aged 17 | 1435 – 1488 | 53 years | died in office read off the dates alone |  |
| [Abu Zakariya Yahya IV](https://app.pastlas.com/person/abu-zakariya-yahya-iv/) | 1488 – 1489 | 1 year | died in office read off the dates alone | grandchild |
| [Abd-al-Mumin ibn Ibrahim](https://app.pastlas.com/person/abd-al-mumin-ibn-ibrahim/) | 1489 – 1490 | 1 year | dates disagree read off the dates alone |  |
| [Abu Yahya Zakariya](https://app.pastlas.com/person/abu-yahya-zakariya/) | 1490 – 1494 | 4 years | died in office Wikidata's manner of death died of natural causes |  |
| [Abu Abdallah Muhammad IV al-Mutawakkil](https://app.pastlas.com/person/abu-abdallah-muhammad-iv-al-mutawakkil/) | 1493 – 1526 | 33 years | died in office Wikidata's manner of death died of natural causes | another recorded relative |
| 16th century · 3 reigns |  |  |  |  |
| [Abu Abdallah Muhammad V al-Hasan](https://app.pastlas.com/person/abu-abdallah-muhammad-v-al-hasan/) · aged 21 | 1526 – 1543 | 17 years | left office alive read off the dates alone | child |
| [Abu al-Abbas Ahmad III](https://app.pastlas.com/person/abu-al-abbas-ahmad-iii/) · aged 38 | 1543 – 1573 | 30 years | left office alive read off the dates alone died of natural causes | child |
| [Abu Abdallah Muhammad VI ibn al-Hasan](https://app.pastlas.com/person/abu-abdallah-muhammad-vi-ibn-al/) · aged 23 | 1573 – 1574 | 1 year | left office alive read off the dates alone | sibling |

23 rulers, 23 with terms dated as terms, covering 1224 – 1574. Median reign 4 years. 3 of 22 handovers irregular - a killing, a deposition, a rival claimant, a rising or a coup beside it. A blank in the last column means no kin on record, which is coverage, never “unrelated”.

### Longest reigns

- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Hafsid_Dinar_-_Abu_Amr_Othman.jpg/120px-Hafsid_Dinar_-_Abu_Amr_Othman.jpg)[Abu 'Amr 'Uthman](https://app.pastlas.com/person/abu-amr-uthman/)53 yrs
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/King_of_Tunis_before_Charles_V%2C_Barcelona%2C_1519.jpg/120px-King_of_Tunis_before_Charles_V%2C_Barcelona%2C_1519.jpg)[Abu Abdallah Muhammad IV al-Mutawakkil](https://app.pastlas.com/person/abu-abdallah-muhammad-iv-al-mutawakkil/)33 yrs
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/58/0_Le_Sultan_Mulay_Ahmad_de_Tunis_-_Rubens_-_Museum_of_Fine_Arts%2C_Boston_-_40.2_-(2).JPG/120px-0_Le_Sultan_Mulay_Ahmad_de_Tunis_-_Rubens_-_Museum_of_Fine_Arts%2C_Boston_-_40.2_-(2).JPG)[Abu al-Abbas Ahmad III](https://app.pastlas.com/person/abu-al-abbas-ahmad-iii/)30 yrs
- ![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Hafsid_dinar_-_Tunisia.jpg/120px-Hafsid_dinar_-_Tunisia.jpg)[Muhammad I al-Mustansir](https://app.pastlas.com/person/muhammad-i-al-mustansir/)28 yrs
- [Abu al-Abbas Ahmad II](https://app.pastlas.com/person/abu-al-abbas-ahmad-ii/)23 yrs

[All 23 terms, year by year, in the atlas →](https://app.pastlas.com/?q=Q752662&m=succession)

Its world

## Rivals, and who else stood

### Who it fought most

Wars and battles both took part in, on whichever side: the record names who took part, not who fought whom.

- [Ottoman Empire](https://app.pastlas.com/state/ottoman-empire/)Battle of Djerba4
- [Republic of Genoa](https://app.pastlas.com/state/republic-of-genoa/)Battle of Djerba3
- [Hispanic Monarchy](https://app.pastlas.com/state/hispanic-monarchy/)Battle of Djerba2
- [Kingdom of France](https://app.pastlas.com/state/kingdom-of-france/)Barbary Crusade2

### Meanwhile, elsewhere

The best-known states of other regions that stood while it did; the band is the Hafsid dynasty’s own years.

- [Maya civilization](https://app.pastlas.com/state/maya-civilization/)Americas and Oceania
- [Denmark](https://app.pastlas.com/state/denmark/)Europe
- [Sweden](https://app.pastlas.com/state/sweden/)Europe
- [Kathmandu](https://app.pastlas.com/state/kathmandu/)South Asia
- [Mongol Empire](https://app.pastlas.com/state/mongol-empire/)East and Southeast Asia
- [Delhi Sultanate](https://app.pastlas.com/state/delhi-sultanate/)South Asia
- [Mali Empire](https://app.pastlas.com/state/mali-empire/)Sub-Saharan Africa
- [Ming dynasty](https://app.pastlas.com/state/ming-dynasty/)East and Southeast Asia

12001300140015001600

How it compares

## Among 3,073 states

Each column is a share of the states; gold is the Hafsid dynasty.

Stood longer than 77% of 3,073 states

*How long it stood: Hafsid dynasty at 345 years among 3,073 states*

How long it stood, among the states with a recorded end or still standing.

Held more ground at its peak than 60% of 1,464 states

*The most ground it held: Hafsid dynasty at 224,300 km² among 1,464 states*

The most ground it held, among the states with a border in Cliopatria.

Had more wars on record per century than 87% of 3,073 states

*Wars recorded per century: Hafsid dynasty at 0.3 among 433 states*

Wars recorded per century, among the states, counting the wars the atlas hosts under each.

Why it fell

## Why did the Hafsid dynasty fall?

Historians still argue. Here is what the atlas records about its last century:

4

wars and battles in its last century, more than in any before it

[See its last century on the timeline](https://app.pastlas.com/?v=timeline&sel=Q752662&t=1454,1594&y=1574)[The investigation · 1 cause on record so far](https://app.pastlas.com/?q=Q752662)

### What led to it, and what came of it

The investigation's own picture: 1 cause the record names and 0 results, the strongest six of each at their own years, joined to the state by the kind of claim - a recorded statement solid, the article's sentence dashed, a theory dash-dot.

*1 causes above and 0 results below Hafsid dynasty, each at its own years and joined to it by the kind of claim*

linked

[Open the investigation](https://app.pastlas.com/?q=Q752662): every row with its evidence, the conditions at the time, the theories condition by condition, and the succession analysed.

### Its centuries in the record

*Rows recorded within it by century: at most 11 in one century*

Wars and battles in red, risings, coups and massacres beside them, everything else in grey, by the century each began in. A tall bar is partly a fact about Wikipedia: better-documented centuries hold more.

Each century’s own page:[1200 – 1299](https://app.pastlas.com/century/13th-century/)[1300 – 1399](https://app.pastlas.com/century/14th-century/)[1400 – 1499](https://app.pastlas.com/century/15th-century/)[1500 – 1599](https://app.pastlas.com/century/16th-century/)

## Keep exploring

[Watch its borders, 1236 → 1574The live map, with every state around it. Press play.](https://app.pastlas.com/?v=map&y=1236&sel=Q752662)[Everything beside it, 1194 – 1609Every state, war and life of its years, region by region.](https://app.pastlas.com/?v=timeline&sel=Q752662&t=1194,1609)[All 30 of its entriesOpen it in the atlas and read them by kind or century.](https://app.pastlas.com/?sel=Q752662)

Share this page<iframe src="https://app.pastlas.com/state/hafsid-dynasty/embed/" width="640" height="470" style="border:0;max-width:100%" loading="lazy" title="Hafsid dynasty in 1344, a map from Pastlas"></iframe>

“Hafsid dynasty”, Pastlas, a historical atlas, 2026-11-26. https://app.pastlas.com/state/hafsid-dynasty/

## How this page is made

Drawn from Wikidata (Q752662, CC0), borders from Cliopatria (CC BY 4.0), coast and rivers from Natural Earth, cities from Reba, Reitsma & Seto 2016 (CC BY 4.0). Data built 2026-11-26 · Pastlas v2.47.1, by Oleh Voronko; the published atlas and its data are for non-commercial use.

## How to read it

Areas are measured on an equal-area grid from borders simplified to about five kilometres. “c.” marks an approximate date, and a date known to the century is never printed to the year. Counts are what the atlas holds, and they follow Wikipedia’s coverage: a busy century is partly a fact about the record.

## Something wrong?

Tell us and name the entry. We fix the data, not just this page.

[Report a problem](https://app.pastlas.com/form/?e=Q752662&l=Hafsid+dynasty&y=1229+%E2%80%93+1574&from=%2Fstate%2Fhafsid-dynasty%2F)
