Shajaram
7th–9th centuries

Ahl al-Bayt — Descendants of Ali

From Ali ibn Abi Talib — Hasan and Husayn, the Twelve Imams, the Idrisids and the line of the sayyids

11 generations26 people

Descendants of Fatimah, daughter of the Prophet (pbuh), and Ali ibn Abi Talib: through Hasan, the Hasani sayyids (al-Nafs al-Zakiyya, and Idris I, founder of the Idrisids in Morocco); through Husayn, Ali Zayn al-Abidin, Muhammad al-Baqir, Ja'far al-Sadiq, Musa al-Kazim, Ali al-Rida and the later imams. The Ismailis descend from Ismail ibn Ja'far, and the Zaydi school originates with Zayd ibn Ali.

Drag and zoom the tree. Tap a card to read about that person below.

List by generation

Generation 1

Ali ibn Abi Talib

600 – 661Reign: 656–661

The fourth caliph, cousin and son-in-law of the Prophet (pbuh) — see "Family Tree of Prophet Muhammad (pbuh)". He was martyred by the blow of Ibn Muljam in the mosque of Kufa; according to the well-known tradition he is buried in Najaf.

Spouse
Fatimah bint Muhammad, Khawlah bint Ja'far (al-Hanafiyya)
Children
Hasan ibn Ali, Husayn ibn Ali, Zaynab bint Ali, Muhammad ibn al-Hanafiyya, Abbas ibn Ali
Also in the «Family Tree of Prophet Muhammad (pbuh)» family tree

Generation 2

Zaynab bint Ali

626 – 682

After Karbala she became the defender and voice of the Ahl al-Bayt; her speeches in Kufa and Damascus are famous. Wife of her cousin Abdullah ibn Ja'far.

Father
Ali ibn Abi Talib
Mother
Fatimah bint Muhammad

Muhammad ibn al-Hanafiyya

637 – 700

The revolt of al-Mukhtar (685–687) was raised in his name; the Kaysanites regarded him as imam and mahdi. Later he pledged allegiance to Abd al-Malik. Birth year approximate.

Father
Ali ibn Abi Talib
Mother
Khawlah bint Ja'far (al-Hanafiyya)

Abbas ibn Ali

? – 10.10.680

Abu al-Fadl; his mother was Umm al-Banin. Husayn's standard-bearer at Karbala, he was martyred while fetching water.

Father
Ali ibn Abi Talib

Generation 3

Ali al-Akbar

? – 10.10.680

Son of Husayn; martyred at Karbala.

Father
Husayn ibn Ali

Generation 4

Muhammad al-Baqir

677 – 733

The fifth imam, "the one who splits open knowledge"; a descendant of Husayn through his father and of Hasan through his mother. A leading scholar of Medina, from whom many hadith scholars narrated.

Father
Ali Zayn al-Abidin
Mother
Fatimah bint Hasan
Children
Ja'far al-Sadiq

Zayd ibn Ali

695 – 740

He led a revolt against the Umayyads in Kufa; the Zaydi school (Yemen) bears his name.

Father
Ali Zayn al-Abidin

Generation 5

Muhammad al-Nafs al-Zakiyya

? – 762

He led a revolt against the Abbasids in Medina.

Father
Abdullah al-Mahd

Idris I ibn Abdullah

? – 791Reign: 788–791

After the Battle of Fakhkh (786) he fled to the Maghreb and founded the Idrisid state in Morocco (788). He founded the city of Fez in 789; his son Idris II expanded it and made it the capital. He was poisoned in 791.

Father
Abdullah al-Mahd

Ja'far al-Sadiq

702 – 765

The sixth imam, a great jurist; Abu Hanifa and Malik ibn Anas narrated from him. His mother Umm Farwa was a great-granddaughter of Abu Bakr. The Ja'fari school bears his name.

Father
Muhammad al-Baqir
Children
Ismail ibn Ja'far, Musa al-Kazim

Generation 6

Musa al-Kazim

745 – 799

The seventh imam; he died in the prison of Harun al-Rashid (Baghdad) and was buried in Kadhimiya. Many sayyid families descend from him.

Father
Ja'far al-Sadiq
Children
Ali al-Rida

Generation 7

Ali al-Rida

766 – 818

The eighth imam; al-Ma'mun declared him heir to the throne (817). He died in Tus — the city of Mashhad grew up around his shrine.

Father
Musa al-Kazim
Children
Muhammad al-Taqi (al-Jawad)

Generation 8

Muhammad al-Taqi (al-Jawad)

811 – 835

The ninth imam; he was a young child when his father died. He died in Baghdad.

Father
Ali al-Rida
Children
Ali al-Naqi (al-Hadi)

Generation 9

Generation 10

Generation 11

Muhammad al-Mahdi

869 – ?

According to the belief of the Imami (Twelver) Shia, the twelfth imam: in occultation since 874, he will return at the end of time as the Mahdi. This view is not accepted in the Sunni tradition.

Father
Hasan al-Askari

Compiled from open historical sources; some dates are approximate. These trees cannot be edited.

Build your own family tree

Record your ancestors, keep family photos and fill in the tree together with your relatives — for free.

Get started free

Other family trees

All family trees