Template:Fatimid descent from Ali

Prophet Muhammad
Ali ibn Abi Talib
(asas)
Fatima
al-Hasan ibn Ali
(1st imam)
al-Husayn ibn Ali
(2nd imam)
Ali ibn Husayn Zayn al-Abidin
(3rd imam)
Zayd ibn AliMuhammad al-Baqir
(4th imam)
Zaydi imamsJa'far al-Sadiq
(5th imam)
Abdallah al-AftahMusa al-KadhimIsma'il ibn Ja'far
(6th imam)
Fathite imamsTwelver imamsMuhammad ibn Isma'il
(7th imam)
Abdallah
(8th imam, in concealment)
Ahmad
(9th imam, in concealment)
Abu Ali Muhammad
(Abu'l-Shalaghlagh)
al-Husayn
(10th imam, in concealment)
DaughterAbdallah
al-Mahdi bi'llah

(11th imam, 1st Fatimid caliph)
Muhammad
al-Qa'im bi-Amr Allah

(12th imam, 2nd Fatimid caliph)
   denotes imams as recognized by the Isma'ilis, regnal names in bold
Source: Daftary, Farhad (2007). The Ismāʿı̄lı̄s: Their History and Doctrines (Second ed.). Cambridge: Cambridge University Press. p. 507. ISBN 978-0-521-61636-2.