The Imam Who Held the Caliphate in Its Darkest Hour
Sayyidna al-Qa’im bi-Amrillah (القَائِمُ بِأَمرِ اللَّه — He Who Rises in Command of Allah) was the 14th Imam in the Ismaili Tayyibi chain and the 2nd Caliph of the Fatimid dynasty. He ruled from 322–334 AH / 934–946 CE — a period remembered as the greatest test the Fatimid state would ever face in North Africa.
His reign was overshadowed — and ultimately defined — by a single event: the revolt of Abu Yazid al-Kharijite, known in Islamic historiography as “Sahib al-Himar” (The Man of the Donkey), a leader who came dangerously close to extinguishing the Fatimid dynasty entirely.
Succession from the First Imam
Al-Qa’im was the son and successor of Imam al-Mahdi (AS), the founder of the Fatimid Caliphate. He received the nass from his father — the explicit designation that marks the transfer of Imamate — and ascended as Imam and Caliph on his father’s death in 322 AH / 934 CE.
The Fatimid Caliphate was twenty-five years old when al-Qa’im took the throne. It had consolidated control over most of North Africa (the Maghreb), with its capital at al-Mahdiyya, the fortified coastal city built by al-Mahdi.
The Abu Yazid Revolt — 322–334 AH
Abu Yazid Makhlad ibn Kaydad al-Kharijite was a Berber tribal leader who preached an austere Ibadi Kharijite doctrine against what he called the “godless Fatimid rulers.” He rose from obscurity in the region of Tébessa (modern Algeria) and his message found enormous resonance among the Zanata Berber tribes, who resented Fatimid taxes and religious authority.
The revolt began in 322 AH — the same year al-Qa’im became Imam.
Abu Yazid’s forces swept eastward across North Africa with devastating speed:
- He captured Kairouan (the great religious capital of North Africa) in 333 AH / 944 CE
- He burned the mosque libraries and killed scholars
- He besieged al-Mahdiyya itself — the Fatimid capital — in 333 AH
The situation was dire. The Fatimid court was trapped inside al-Mahdiyya. Food became scarce. The population of the capital shrank as people fled. Abu Yazid’s camp stretched around the coastal fortress for months.
Al-Qa’im’s Death During the Siege
Imam al-Qa’im (AS) died during the siege of al-Mahdiyya in 334 AH / 946 CE, with Abu Yazid’s forces still encircling the city.
It is recorded that al-Qa’im, knowing his end was near, summoned his son al-Mansur and gave him the nass — the designation of the Imamate. He instructed al-Mansur to keep his death secret from the besieging forces for as long as possible, to prevent the psychological collapse of the defenders.
Al-Mansur obeyed. The Imam’s death was concealed for a period while al-Mansur continued commanding the defense. This act of discretion — concealing the death to protect the dawat — echoes the deeper principle of satr in the Tayyibi tradition: that sometimes the Imam’s affairs must be protected by concealment.
The Victory Completed by al-Mansur
When al-Mansur finally emerged to claim the Imamate openly, he turned the tide against Abu Yazid. The Fatimid forces went on the offensive. Abu Yazid, who had seemed invincible, was routed.
Abu Yazid was captured and died of wounds in 336 AH / 947 CE — a victory completed by the 3rd Fatimid Imam, al-Mansur bi-Allah (AS), al-Qa’im’s son.
Al-Mansur built a new city to commemorate the final victory: al-Mansuriyya, which would serve as the Fatimid capital before Egypt was conquered and Cairo was built.
The Name “al-Qa’im”
The title al-Qa’im (القَائِم — He Who Rises, He Who Stands) carries deep significance in Islamic and Ismaili theology:
- It echoes the Hadith traditions about the Qa’im al-Zaman — the one who “rises” in the end times to establish justice
- In Ismaili theology, the Qa’im is a specific rank in the hierarchy of the haqqa’iq (spiritual truths) — the Imam who will rise to make all things manifest
- The title connects al-Qa’im to the deepest eschatological claims of the dawat
His Place in the Imam Chain
Imam al-Qa’im (AS) is the 14th Imam in the Ismaili Tayyibi count:
| Position | Imam |
|---|---|
| 13th | Imam al-Mahdi (AS) — 1st Fatimid |
| 14th | Imam al-Qa’im (AS) — 2nd Fatimid |
| 15th | Imam al-Mansur (AS) — 3rd Fatimid |
| 16th | Imam al-Mu’izz (AS) — 4th Fatimid (conqueror of Egypt) |
| 17th | Imam al-Aziz (AS) — 5th Fatimid |
The Imamate continued through him, eventually reaching Imam al-Tayyib (AS) — the 21st Imam — who entered the Second Satr in 524 AH / 1130 CE.
See also: Imam Mahdi Fatimi, Imam Al Muizz, Satr Period Hidden Imams, Fatimid Caliphate