WhenAtlas · The Historical AtlasHistory in MotionReading edition

Polity · 1229 – 1574

Hafsid dynasty

哈夫斯王朝

Polity · 1229 – 1574 · Century precision · 36.80° N, 10.18° E

The Hafsid dynasty was a Sunni Muslim dynasty of Berber descent that ruled Ifriqiya, roughly modern Tunisia, western Libya and eastern Algeria, from 1229 to 1574. Its founder, Abu Zakariya Yahya, had served as an Almohad governor before declaring independence. Under Abu Zakariya and his successor al-Mustansir, who reigned from 1249 to 1277, the Hafsids consolidated their power and made Tunis their capital. The dynasty controlled a long stretch of the North African coast and profited from Mediterranean trade, agriculture and piracy. After al-Mustansir's death, the realm split between an eastern branch based in Tunis and a western branch centred on Béjaïa and Constantine, though it was later reunified. The Hafsids also faced brief invasions by the Marinids of Morocco and, in the sixteenth century, pressure from the Ottoman Empire. Propped up for a time by Spain, they lost Tunis to the Ottomans in 1574, ending their rule. Their court fostered scholarship, architecture and the exchange of ideas across the central Mediterranean, and Tunis remained a major intellectual and commercial centre throughout their reign.

Key facts

  • The Hafsids ruled Ifriqiya from 1229 to 1574
  • Abu Zakariya Yahya founded the dynasty after serving as an Almohad governor
  • Tunis was their capital
  • The Ottoman Empire conquered Tunis in 1574, ending Hafsid rule

Record

Capital: Tunis

Government: monarchy

Language: Classical Arabic

Currency: dinar

Notable figures

  • Abu Zakariya Yahya
  • al-Mustansir

Sources

Single source — details may be incomplete.

  1. Wikidata Q752662 — Hafsid dynastyCC0-1.0

Related

CiteWhenAtlas — History in Motion, “Hafsid dynasty” (2026). https://whenatlas.com/entity/polity.q752662

Reuse this data: open dataset (GeoJSON / CSV, CC BY 4.0)

Advertisement