Knowledge History & Heritage

Imam al-Qa'im bi-Amrillah (AS) — The Second Fatimid Imam

الإِمَامُ القَائِمُ بِأَمرِ اللَّه — ثَانِي خُلَفَاءِ الفَاطِمِيِّين
4 min read · 783 words

The 14th Imam in the Ismaili Tayyibi chain and the 2nd Fatimid Caliph, whose reign (322–334 AH / 934–946 CE) was defined by the greatest crisis in Fatimid history: the revolt of Abu Yazid al-Kharijite, who nearly swept the dynasty from power before being defeated by al-Qa'im's son.

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:

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:


His Place in the Imam Chain

Imam al-Qa’im (AS) is the 14th Imam in the Ismaili Tayyibi count:

PositionImam
13thImam al-Mahdi (AS) — 1st Fatimid
14thImam al-Qa’im (AS) — 2nd Fatimid
15thImam al-Mansur (AS) — 3rd Fatimid
16thImam al-Mu’izz (AS) — 4th Fatimid (conqueror of Egypt)
17thImam 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

← All articles
← Previous
Imam Muhammad ibn Ismail (AS) — The Eighth Imam
Next →
Imam al-Aziz Billah (AS) — The Fifth Fatimid Imam

More in History & Heritage

← Back to all articles