al-Hasan ibn Ali, last of the Banu Badis

الحسن بن علي آخر ملوك آل باديس

† Hijri date derived by computation from the Gregorian/Julian date; it may differ from the transmitted date by a day or two.

Unverified: born 1109 CE · 502 AH. Recorded by an automated pass and not yet confirmed by a source, so not used on timelines.

Last Zirid sultan of Mahdiyya, enthroned a boy of twelve under his freedmen Sandal and Muwaffaq; after the Norman capture he fled to the Arabs then to the Almohads, and Abd al-Mu'min restored him in Mahdiyya 555 until he died en route to Marrakesh 1.

DraftWritten with AI help from the sources it cites, and not yet read by a human editor.

Depth

At a glance

Era
Abbasid Fragmentation
Region
Maghreb

Life in time

107511001125115011751200122512501275 c. c. c. c.
The Buyid, Fatimid and Seljuk Era · The Crusades, Ayyubids and Mamluks · The Mongol and Post-Mongol Era Contemporaries: Abd al-Ghani al-Maqdisi · Abd al-Haqq I al-Marini · Muwaffaq al-Din Abd al-Latif al-Baghdadi · Abd al-Mughith al-Harbi · Abd al-Qadir al-Rahawi

Overview

Al-Hasan ibn Ali (may God be pleased with him), the last sultan of the Banu Badis at al-Mahdiyya. 2

His life

He came to power as a boy of twelve, and his client Sandal and then his client Muwaffaq took charge of his affairs. When the Christians seized al-Mahdiyya, he fled to the Arabs of Riyah, but found no one to help him there. He then crossed to Bona and Algiers, until the Almohads took Algiers in 547 AH; he went out to Abd al-Mu'min, who received him with honour and acceptance, and he accompanied him on his campaigns. 2

When Abd al-Mu'min took al-Mahdiyya in 555 AH, he settled him there and gave him Rahish as a fief. He stayed eight years, then died on his way to Marrakesh in 566 AH. 2

The data say he was the son of Ali ibn Yahya al-Ziri, and the entry linked with him does not yet exist in the museum.

Connections

Explore the connections

Ruler of
al-Mahdiyya
Child of
Ali ibn Yahya al-Ziri
Participated in
Roger of Sicily Seizes Mahdiyya

People and things also explored

Roger II of Sicily· Roger of Sicily Seizes Mahdiyya· al-Mahdiyya· The Siege of al-Mahdiyya by Abu Yazid· Capture of Mahdia· al-Mahdiyya revolts from Yaqub to his son Muhammad· Siege of Mahdia (1159–1160)· Abd al-Mu'min ibn Ali al-Qumi

Sources

  1. Kitab al-Ibar of Ibn Khaldun , p. 1636
  2. Kitab al-Ibar of Ibn Khaldun , p.1636
Cite this page

islam.museum contributors. “al-Hasan ibn Ali, last of the Banu Badis”. islam.museum, https://islam.museum/en/person/al-hasan-ibn-ali-zirid/. 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

Roger II of Sicily

Lord of Sicily (Roger II); his fleets took Mahdiyya in 543 under George of Antioch and he imposed the jarī tax on the coastal towns until Abd al-Mu'min the Almohad recovered them.