al-Hakim bi-Amr Allah Ahmad al-Qabi

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

1247 CE · c. 645 AH – 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.

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

Depth

At a glance

Roles
Caliph
Era
The Mongol and Post-Mongol Era
Identifiers
Wikidata

Life in time

117512001225125012751300132513501375 c.
The Crusades, Ayyubids and Mamluks · The Mongol and Post-Mongol Era Contemporaries: Al-Astarabadhi, al-Hasan ibn Muhammad · al-Dimyati · al-Ju'bari Abu Ishaq Ibrahim ibn Umar · Jamal al-Din al-Qurashi Muhammad ibn Umar · Ali ibn Ahmad al-Asbahi

Place in the story

Roles are dated and sourced; the museum describes the act and attributes the judgement.

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

The bay'a in Cairo

Al-Suyuti, citing Qutb al-Din, records that on Thursday 8 Muharram 661 AH the sultan held a public session, and al-Hakim came riding to the great hall of the Citadel after his lineage was confirmed. The sultan gave him the bay'a as Commander of the Faithful. Al-Hakim in turn entrusted the affairs of government to the sultan, and the people then gave their oaths by rank. 5 The next day al-Hakim preached a sermon on jihad and the imamate. It touched on the violation of the caliphate's dignity and opened with praise of God, who raised a support for the house of al-Abbas. The sermon was then sent out to the provinces, and he preached in the Citadel mosque several times. 5

Connections

Explore the connections

Ruled over
Abbasid Caliphate of Cairo
Successor of
al-Mustansir bi'llah II Ahmad ibn al-Zahir
Ruler of
Cairo
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
Predecessor of
al-Mustakfi I
His reign saw
Al-Dhahabi begins the study of hadith at Damascus, 690/1291· Al-Dhahabi heads a reading session at the Umayyad Mosque, Muharram 700/1300· Al-Dhahabi's hadith journeys, c. 700/1300· Baybars expels al-Nawawi from Damascus to Nawa, 676/1277· Al-Nawawi finishes the Minhaj and the Rawda, 669/1270-71· Al-Nawawi completes al-Tahrir fi alfaz al-Tanbih, 671/1272-73· Al-Qurtubi composes al-Jami' li-Ahkam al-Qur'an and his other books, c. 670/1272· Al-Subki hears hadith and studies in Egypt in his youth, c. 700/1301· The killing of al-Malik al-Ashraf Khalil in 693 AH· Assault on Alaro Castle (1285)· Battle of Alcoy (1276)· Battle of Arjona· Battle of Bapheus· Battle of Beas River· Battle of Besalú (1285)· Battle of Domaniç· Battle of Dongola· Battle of Elbistan· Battle of Martos· Battle of Moclín· Battle of Mount Armenia (1282)· Battle of Saint Mary (1285)· Battle of the Tafna (1281)· Battle of Wadi al-Khaznadar· Battle of Zonglos (1293)· Baybars raids Cilicia, 673· Death of al-Zahir Baybars, 676· Baybars takes Krak des Chevaliers and Akkar, 669 AH· The Euphrates crossing to relieve al-Bira, 671· The mangonel duel of al-Bira, 674· Al-Dhahabi is born at Damascus, 673/1274· Al-Safadi is born at Safad, 696/1297· Birth of Taqi al-Din al-Subki in Egypt, Safar 683/April 1284· Birth of Ibn Fadl Allah al-Umari at Damascus, 700/1301· Birth of Ibn Qayyim al-Jawziyya at Damascus, 7 Safar 691/29 January 1292· Burning of Peralada (1285)· Chem River Battle (1300)· Conquest of Tripoli (1289)· The Great Fire of Damascus in 681 AH· The great Damascus flood, Sha'ban 683· Death of Imam al-Nawawi at Nawa, 676/1277· Death of Ibn al-Nafis at Cairo and his endowment of estate and books to the Mansuri maristan, 21 Dhu al-Qa'da 687/December 1288· The Aragonese capture of Djerba· Egypt's famine and epidemic, 695· Louis IX's siege of Tunis (the Eighth Crusade)· The conquest of Acre and the expulsion of the Franks from Syria, 690 AH· Fall of Krak des Chevaliers· Fall of Montfort Castle (1271)· Four madhhab qadis appointed in Egypt, 663· Ghazan ibn Arghun, Ruler of the Tatars, Embraces Islam· Ghazan's devastation of Syria, 699· Ghazan's Campaign against Syria, 700 AH· Harran's final ruin, 670· Ibn al-Nafis composes the Theologus Autodidactus (Fadil ibn Natiq) at Cairo, c. 670/1270· Ibn al-Tiqtaqa composes al-Fakhri at Mosul, 701/1302· Ibn Kathir is born in a village of the Busra al-Sham district, about 701/1302· The Assaf al-Nasrani affair and Ibn Taymiyya's first imprisonment, 693/1293· Ibn Taymiyya's first lesson at the Sukkariyya, Damascus, 683/1284· Ibn Taymiyya's pilgrimage and his treatise on the rites, 691/1292· The Hamawiyya creed and the councils that cleared it, 698/1299· Ibn Taymiyya begins teaching at the Hanbaliyya, 695/1296· Karak taken from al-Mas'ud Khidr, 685· The Karamanids occupy Konya and install Jimri, 675/1277· Lajin's coup against al-Adil Kitbugha, 696· Lajin murdered; al-Nasir restored, 698· Completion of the Mansuri maristan in Cairo, 683/1284· The fall of Minorca to the lord of Barcelona· Al-Mizzi begins the quest for hadith, start of 675/1276· Al-Dhahabi hears Sahih al-Bukhari from al-Mizzi, 694/1294· The Conquest of Nubia and the Capture of the King of Dunqula· Al-Nuwayri's birth at Akhmim, 21 Dhu al-Qa'da 677/5 April 1279· Al-Nuwayri sent to Syria to run the diwan al-khass, Jumada II 701/January 1302· Al-Nuwayri joins the diwan al-khass and resides at the Nasiriyya, 698/1298· Al-Nuwayri in Upper Egypt: elephant tusks at Qus, 697/1298· The fall of Qal'at al-Rum, 691· Rumi dies at Konya, 672/1273· The Tinmel massacre — end of Banu Abd al-Mu'min· The second battle of Homs, 680· Siege of Algeciras (1278)· Siege of İnegöl· Siege of Karacahisar (1288)· Siege of Kulaca Hisar· Siege of Margat (1285)· Siege of Montesa (1277)· Siege of Nedroma (1296)· Siege of Rumkale (1292)· Siege of Salses (1285)· Siege of Tlemcen (1272)· Siege of Tlemcen (1290)· Siege of Tripoli (1271)· Siege of Tudela (1284)· Siege of Tunis (1270)· Tekuder's accession as the Muslim sultan Ahmad, 681· Qalawun Takes Tripoli by the Sword

People and things also explored

Damascus· al-Zahir Rukn al-Din Baybars· Cairo· al-Dhahabi· Ibn Taymiyya· al-Nuwayri· Imam al-Nawawi· Ibn al-Nafis

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
  5. Tarikh al-Khulafa — al-Suyuti (Dar al-Minhaj edition) , p.726
  • al-Hakim I (al-Hakim bi-Amr Allah Ahmad) — Wikidata Q284627
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-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

Damascus

Syrian city, capital of the Umayyad caliphate (661-750 CE) and home of the Umayyad Mosque. Ibn Battuta records reaching Damascus on 9 Ramadan 726 and lodging at the Maliki madrasa known as al-Sharbashiyya, quoting Ibn Jubayr's naming it 'the paradise of the East'; he calls its congregational mosque the finest of the world's mosques in construction, noting that al-Walid ibn Abd al-Malik undertook the building after the Byzantine king sent craftsmen The Encyclopaedia of Islam traces the city from the Bronze Age through Aramaean, Hellenistic, Roman and Byzantine rule to the Arab conquest of 14-15 AH (635-636 CE), then through Umayyad, Abbasid, Burid, Zengid, Ayyubid, Mamluk and Ottoman rule to the French mandate of 1920, describing the Great Mosque built by al-Walid I and the city's role as a centre of madrasas under Nur al-Din and the Ayyubids.