Abu Zakariya al-Hafsi

أبو زكريا الحفصي

August 1249 CE · 7 Jumada II 647 AH

Abu Zakariya Yahya ibn Abi Muhammad, grandson of the shaykh Abu Hafs al-Hintati, founder of the Hafsid state in Ifriqiya; a loyal Almohad amir until al-Ma'mun abjured the Mahdi's creed, whereupon he threw off his allegiance in 627 AH and seized Ifriqiya, founding the Hafsid house that ruled Tunis some three centuries.

Depth

At a glance

Roles
Ruler
Counted among
Sunni
Era
The Mongol and Post-Mongol Era
Region
Maghreb
Identifiers
WikidataVIAF

Life in time

1150117512001225125012751300 c. c.
The Buyid, Fatimid and Seljuk Era · The Crusades, Ayyubids and Mamluks · The Mongol and Post-Mongol Era Contemporaries: Abaga ibn Hulagu · Abd al-Rahman ibn Qudama al-Maqdisi · Abd al-Wahid al-Marrakushi · Abu al-Abbas al-Qurti · Abu al-Hasan al-Shadhili

Overview

Abu Zakariya Yahya ibn Abi Muhammad, grandson of Shaykh Abu Hafs al-Hintati, and founder of the Hafsid state in Ifriqiya. He was an Almohad amir until al-Ma'mun abandoned the call of al-Mahdi, and in 627 AH he withdrew his obedience in Ifriqiya and ruled it alone. He thus renewed the rule of the house of Hafs, which held Tunis for about three centuries. 1

His death

Ibn Khaldun says he died outside Bona on the seventh day before the end of Jumada al-Akhira 647 AH, after twenty-two years in power. He was buried in the mosque of Bona, and then moved to Constantine in 666 AH while the Christians were besieging Tunis. The Gregorian conversion (around August 1249 CE) is derived and not from the source. 1

The museum's data have no second source for these dates, which need an additional source.

Connections

Explore the connections

Parent of
Sultan Abu Ishaq al-Hafsi· al-Mustansir billah al-Hafsi
Ruler of
Tunis· Hafsid dynasty
Founder of
Hafsid dynasty
Participated in
Abu Zakariya al-Hafsi's break with the Almohads· Ibn al-Abbar's embassy to the sultan of Ifriqiya for beleaguered Valencia, 635/1238· Ibn al-Abbar leaves fallen Valencia and settles at Tunis as head of the chancellery, 636/1238· The collapse of Muslim Sicily after Abu Zakariya's death

People and things also explored

Tunis· Ibn al-Abbar· Hafsid dynasty· Louis IX's siege of Tunis (the Eighth Crusade)· The killing of Ibn al-Abbar at Tunis, 20 Muharram 658/6 January 1260· al-Hasan b. Muhammad al-Hafsi· al-Rashid ibn al-Ma'mun al-Muwahhidi· al-Amir al-Rashid al-Hafsi

Explore the timeline

Sources

  1. Kitab al-Ibar of Ibn Khaldun , p.1684
  • Wikidata
Cite this page

islam.museum contributors. “Abu Zakariya al-Hafsi”. islam.museum, https://islam.museum/en/person/abu-zakariya-al-hafsi/. CC BY-SA 4.0. Last updated 2026-11-23.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

People

Prophets, companions, scholars, rulers, scientists, poets, travelers: women and men who shaped the story.
Related

Tunis

Tunis is the capital of modern Tunisia, founded by the Arabs at the end of the seventh century on the site of an older city called Tunes, inland beside a lagoon and distinct from coastal Carthage. The Encyclopaedia of Islam reports that Arab historians credit Hassan ibn al-Nu'man with founding it in 80 AH and with setting up a shipbuilding arsenal there. It stayed subordinate to al-Kayrawan for a long time, then served as capital under the Ottomans and the Muradi and Husaynid beys, through the French protectorate and into the independent republic.