al-Hakim bi-Amr Allah Ahmad al-Qabi

الحاكم بأمر الله أحمد القبي

c. January 1302 CE · c. 18 Jumada I 701 AH

Second Cairo caliph [661–701], of al-Mustarshid's line — he escaped the sack to the Arabs, fought the Tatars at Ana, Haditha, Hit and Anbar, reigned first at Aleppo where Abd al-Halim ibn Taymiyya swore him, then ruled Cairo forty years, first Abbasid buried by Sayyida Nafisa 1. At his Cairo bay'a on 8 Muharram 661 Baybars extended his hand and swore first, then the notables, and al-Hakim invested Baybars with the sultanate; next day's khutba opened 'Praise God who raised for the Abbasid house a pillar and a backer' — and the caliph was sequestered at the Citadel of the Mountain in 663 2.

Depth

At a glance

Era
The Mongol and Post-Mongol Era
Review
Draft Completeness 1/5 · Help complete it

Life in time

1225125012751300132513501375 c. c.
The Crusades, Ayyubids and Mamluks · The Mongol and Post-Mongol Era Contemporaries: Abu l-Fida · Ahmad al-Suhrawardi · al-Abili, Abu Abd Allah · Al-Adfawi, Ja'far ibn Tha'laba · Al-Astarabadhi, al-Hasan ibn Muhammad

Overview

Al-Hakim bi-Amr Allah Ahmad al-Qahi, Abu al-Abbas Ahmad ibn Abi Ali al-Hasan, the second of the Abbasid caliphs in Cairo between 661 and 701 AH according to al-Suyuti. 3

Flight and rule

He went into hiding when Baghdad was taken and escaped. He made for Husayn ibn Fallah, amir of the Banu Khafaja, and then the amir Isa ibn Muhanna. He was given the allegiance as caliph, and he took Anah, al-Hadhitha, Hit and al-Anbar, and defeated the Tatars. Then he stayed in Aleppo, and Abd al-Halim ibn Taymiyya and a number of its people gave him the allegiance. 3

His death

He then came to Egypt and held the caliphate until he died on the night of Friday the eighteenth of Jumada al-Ula 701 AH. He was buried near Sayyida Nafisa, the first of them to be buried there. He left the caliphate to his son Sulayman al-Mustakfi. 4

Connections

Explore the connections

Participated in
Establishment of the Abbasid caliphate in Cairo· Al-Hakim Forbids the Women of Egypt to Go Out· Al-Mustansir's departure for Iraq and his disappearance

People and things also explored

al-Mustansir bi'llah II Ahmad ibn al-Zahir· al-Zahir Rukn al-Din Baybars· الشيخ عز الدين بن عبد السلام· Misr (Egypt)· Establishment of the Abbasid caliphate in Cairo· Al-Hakim Forbids the Women of Egypt to Go Out· Al-Mustansir's departure for Iraq and his disappearance

Sources

  1. Tarikh al-Khulafa — al-Suyuti (Dar al-Minhaj edition) , p. 725,731
  2. Shadharat al-Dhahab — Ibn al-Imad al-Hanbali , p. 528-529, 542
  3. Tarikh al-Khulafa — al-Suyuti (Dar al-Minhaj edition) , p.725
  4. Tarikh al-Khulafa — al-Suyuti (Dar al-Minhaj edition) , p.731
Cite this page

islam.museum contributors. “al-Hakim bi-Amr Allah Ahmad al-Qabi”. islam.museum, https://islam.museum/en/person/al-hakim-bi-amr-illah/. CC BY-SA 4.0. Last updated 2026-10-23.

Improve this page on GitHub · Report an error · JSON

Wing

People

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

al-Mustansir bi'llah II Ahmad ibn al-Zahir

First of the Cairo Abbasids; freed from Baghdad's prison, he was hailed at Cairo 13 Rajab 659, then vanished against the Tatars beyond Hit on 3 Muharram 660 — most say killed.