| | | | | | | | 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 Ali | | | | | | Muhammad al-Baqir (4th imam) |
| | | | | | | | | | | | |
Zaydi imams | | | | | | Ja'far al-Sadiq (5th imam) |
| | | | | | | | | | | | |
| | | | | | | | | | |
Abdallah al-Aftah | | Musa al-Kadhim | | Isma'il ibn Ja'far (6th imam) |
| | | | | | | | | | | | | |
Fathite imams | | Twelver imams | | Muhammad 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) |
| | | | | | | | | | | | |
Daughter | | | | | | Abdallah al-Mahdi bi'llah (11th imam, 1st Fatimid caliph) |
| | | | | |
| | | | | | | | | | | |
| | | | Muhammad al-Qa'im bi-Amr Allah (12th imam, 2nd Fatimid caliph) | | | | |