Abu'l-Hasan al-Hasan ibn Ali

Abu'l-Hasan al-Hasan ibn Ali (Arabic: أبوالحسن الحسن بن علي الزيري; 1109–1167) was the last ruler of the Zirid dynasty in Ifriqiya (1121–1148).

[1] Reduced to the coasts of modern Tunisia, during his reign, the Zirid emirate faced the increasingly threatening attacks of the Italo-Norman Kingdom of Sicily.

[1] With his state's economy already in decline, and weakened further by drought and famine, al-Hasan was unable to resist the Norman attack, fleeing instead to the Hammadids in Algiers.

[1] There he remained under virtual house arrest until 1152, when the Almohad Caliphate under Abd al-Mu'min captured Algiers.

An Almohad expedition indeed expelled the Normans from al-Mahdiya in 1160, but al-Hasan was only allowed to settle in its extramural quarter of Zawila.