Timeline Explorer · Fatimid Caliphate · Stop 1 of 6

The Ubaydid al-Mahdi's triumph in the Maghreb and its departure from Abbasid rule

c. 909 CE · c. 296 AH approximate

Under al-Muqtadir the Mahdi's cause prevailed in the Maghreb: he was saluted as imam and caliph, built al-Mahdiyya, and the Aghlabid amir Ziyadat Allah fled to Egypt then Iraq — 'from this date the Maghreb left the Abbasids' command', after a hundred and sixty-odd years of their…

تاريخ الخلفاء — السيوطي ⁦(طبعة دار المنهاج)⁩مروج الذهب — المسعودي

Context and relations

The Ubaydid al-Mahdi's triumph in the Maghreb and its departure from Abbasid rule

c. 909 CE · c. 296 AH

Under al-Muqtadir the Mahdi's cause prevailed in the Maghreb: he was saluted as imam and caliph, built al-Mahdiyya, and the Aghlabid amir Ziyadat Allah fled to Egypt then Iraq — 'from this date the Maghreb left the Abbasids' command', after a hundred and sixty-odd years of their rule over all the Islamic realms. The Mahdi marched on Egypt with forty thousand Berbers; the Nile barred him, so he took Alexandria and the Fayyum, while his son al-Qa'im later seized most of Upper Egypt and the Fustat quarter .

Full page

On the map:

Al-Fustat

All stops in this story

  1. The Ubaydid al-Mahdi's triumph in the Maghreb and its departure from Abbasid rule — c. 909 CE · c. 296 AH

    Under al-Muqtadir the Mahdi's cause prevailed in the Maghreb: he was saluted as imam and caliph, built al-Mahdiyya, and the Aghlabid amir Ziyadat Allah fled to Egypt then Iraq — 'from this date the Maghreb left the Abbasids' command', after a hundred and sixty-odd years of their rule over all the Islamic realms. The Mahdi marched on Egypt with forty thousand Berbers; the Nile barred him, so he took Alexandria and the Fayyum, while his son al-Qa'im later seized most of Upper Egypt and the Fustat quarter .

  2. Death of al-Mu'izz li-Din Allah and accession of al-Aziz — c. 18 December 975 CE · 17 Rabi' II 365 AH

    In Rabi II 365 al-Mu'izz li-Din Allah died in Egypt aged about forty-five. Ibn al-Athir tells the famous cause: a Byzantine envoy recalled al-Mu'izz's prophecy that he would die ruling Egypt and be caliph in Baghdad, then said the majesty he had seen at Mahdiyya had now faded — grief took him, fever followed, and he died. His son Nizar concealed the death till the feast, led prayer as al-Aziz and mourned him publicly .

  3. The khutba for al-Hakim, ruler of Egypt, in Mecca and Medina — c. 1005 CE · 396 AH

    In 396 Ahmad ibn Muhammad ibn Umar al-Alawi led the pilgrimage and gave the khutba at Mecca and Medina for al-Hakim, ruler of Egypt, following the usual practice; he ordered the people of the two sanctuaries to stand whenever his name was mentioned, and did the same in Egypt, where, whenever he was mentioned, they stood and prostrated in the markets and gathering places .

  4. Qarwash al-Uqayli's khutba for al-Hakim at Mosul and Kufa — c. August 1010 CE · Muharram 401 AH

    In Muharram 401 Abu'l-Mani' Qarwash ibn al-Muqallad gathered the people of Mosul, declared obedience to al-Hakim, ruler of Egypt, and established the da'wa for him at Mosul. He then went down to Kufa, al-Mada'in and al-Qasr, where the khutba was read for the Fatimid al-Hakim. The caliphal chancery at Baghdad alleged this, so al-Qadir sent to Amid al-Juyush and Baha al-Dawla, and dispatched to him the judge Abu Bakr al-Baqillani. Baha al-Dawla released a hundred thousand dinars for the army's expenses and wrote to Qarwash with a warning; Qarwash apologised, pledged to remove the matter, and restored the khutba to al-Qadir billah .

  5. The Fatimid rebuilding of al-Aqsa after the 1033 earthquake — 1034 CE · c. 425 AH

    The earthquake of 1033 devastated Jerusalem; the Fatimid caliph al-Zahir rebuilt the Aqsa between 1034 and 1036 and the work was completed under al-Mustansir in 1065. It is the mosque Nasir-i Khusraw described in 1047: shrunk to seven aisles with brilliant mosaic decoration, a triumphal arch bearing a royal inscription in gold mosaic, and most of the central part of the present mosque dates from that rebuilding .

  6. Ending the Ubaydid Khutba and Restoring the Abbasid Khutba in Egypt — c. September 1171 CE · Muharram 567 AH

    Al-Imad al-Katib: Salah al-Din opened the year 567 with Egypt's greatest obedience — the Abbasid khutba, first Jumu'a at Fustat's mosque, the second at Cairo; al-Adid died that Ashura, and the palace's treasures sold for ten years. Shihab al-Din ibn Abi Asrun bore the news to Baghdad, and al-Imad wrote a general proclamation read across the lands of Islam — 'no minbar remains in those lands but the khutba for our lord al-Mustadi' is upon it'. Ibn al-Athir adds: Nur al-Din ordered it, Salah al-Din feared an Egyptian rising, and the Ajami called al-Amir al-Alim mounted the minbar before the khatib and prayed for al-Mustadi' — 'not two goats butted over it'. The khutba spread to Yemen, Barqa, Tawzar and Egypt to Aswan; Ibn al-Jawzi wrote his book al-Nasr ala Misr .