The Shia Imams family tree begins with Hashim, head of the Banu Hashim clan, leading to Abd al-Muttalib, whose lineage branched into significant historical figures. From Abu Talib comes Imam Ali (1st Imam), married to Fatima, the daughter of Prophet Muhammad (PBUH), marking the root of the Imamate.
The Isma’ili branch further diverged, forming the Fatimid Caliphate through Isma’il’s descendants. Later splits created the Nizari and Mustali factions, leading to groups like the Bohra and Alawi communities. Meanwhile, branches like the Dibaj Imams connect back to Muhammad al-Dibaj, showcasing how this genealogical tree reflects the diverse legacy of leadership, faith, and political thought within Shia Islam.

The Foundation of Shia Leadership
Following the death of the Prophet Muhammad (PBUH), a significant disagreement arose over who should succeed him as both the political and spiritual leader of the Muslim community. While Sunni Muslims chose Abu Bakr as the first caliph, Shia Muslims believe that the Prophet had designated his cousin and son-in-law, Ali, as his rightful successor. This marked the beginning of the division between Sunni and Shia Islam.
The Shia belief in the imamate is based on the principle that leadership must remain within the Prophet’s family, passing down through the descendants of Ali and Fatimah, the Prophet’s daughter.
The Lineage of the Shia Imams
The following are the key imams in the Twelver Shia tradition, which believes in a line of twelve imams. Each of these leaders is considered infallible and divinely appointed.
1. Imam Ali ibn Abi Talib
- The First Imam: Ali, the Prophet’s cousin, and son-in-law, was the first imam according to Shia belief. He was renowned for his wisdom, leadership, and justice. His assassination in 661 CE marked a significant moment in early Islamic history.
2. Imam Hasan ibn Ali
- The Second Imam: Hasan, the eldest son of Ali, succeeded him as the second imam. Known for his efforts to preserve peace. He abdicated the caliphate in favor of Muawiyah I, a decision that caused much internal strife among the Muslim community.
3. Imam Husayn ibn Ali
- The Third Imam: Husayn, younger son of Ali, is one of the most significant figures in Shia Islam. His martyrdom at the Battle of Karbala is commemorated annually on Ashura and symbolizes the ultimate stand against injustice.
4. Imam Ali Zayn al-Abidin
- The Fourth Imam: Ali Zayn al-Abidin, a survivor of Karbala, was known for his devotion to worship and his famous collection of supplications, Sahifa al-Sajjadiyya.
5. Imam Muhammad al-Baqir
- The Fifth Imam: Imam al-Baqir contributed significantly to Islamic jurisprudence, laying the foundations for the religious sciences that his successors would continue to develop.
See Also: Prophet Muhammad (PBUH) Family Tree: Quraysh to Imam Mahdi
6. Imam Ja’far al-Sadiq
- The Sixth Imam: Ja’far al-Sadiq is one of the most prominent imams, with contributions that extended to both Sunni and Shia thought. He had many students, including founders of Sunni legal schools.
7. Imam Musa al-Kadhim
- The Seventh Imam: Musa al-Kadhim’s life was marked by imprisonment and eventual martyrdom due to his opposition to the ruling Abbasid caliphs.
8. Imam Ali al-Ridha
- The Eighth Imam: Imam al-Ridha became known during the reign of the Abbasid Caliph al-Ma’mun, who named him as his successor. Although this move was more political than genuine, leading to al-Ridha’s eventual poisoning.
9. Imam Muhammad al-Jawad
- The Ninth Imam: Despite his young age, Muhammad al-Jawad was renowned for his intellect and leadership, though his life was cut short under the Abbasid regime.
10. Imam Ali al-Hadi
- The Tenth Imam: Ali al-Hadi’s leadership was heavily restricted by the Abbasid caliphs, but he continued to guide the Shia community through a discreet network of followers.
11. Imam Hasan al-Askari
- The Eleventh Imam: Imam al-Askari spent much of his life under house arrest. His death left the Shia community waiting for the emergence of his son, the Twelfth Imam.
12. Imam Muhammad al-Mahdi
- The Twelfth Imam: Known as the Hidden Imam, al-Mahdi is believed by Twelver Shia Muslims to have gone into occultation. They await his return, when he will bring justice to the world as the messianic figure.
Zayd ibn Ali: The Founder of the Zaydi Sect
In addition to the Twelver lineage of imams, there are other branches of Shia Islam that recognize different successions. One of the most important figures in this context is Zayd ibn Ali (695–740 CE), the son of the fourth imam, Ali Zayn al-Abidin, and the brother of the fifth imam, Muhammad al-Baqir.
Zayd ibn Ali was a pious scholar and warrior who led a revolt against the Umayyad caliphs, seeking to restore justice and bring an end to their oppressive rule. His revolt was ultimately unsuccessful, and he was martyred in battle. Despite this, his followers—known as the Zaydis—continued to regard him as a rightful imam.
The Zaydi Imamate: A Unique Branch of Shia Islam
The Zaydi sect, often referred to as “Fiver Shia” due to their recognition of only five imams, diverged from the Twelvers after the imamate of Zayn al-Abidin. Zaydis believe that any descendant of Hasan or Husayn who rises up to claim leadership, through knowledge and justice, can be an imam. Unlike the Twelvers, they do not emphasize the concept of an infallible or hidden imam.
Historically, Zaydi imams have played a significant role, particularly in Yemen, where Zaydi rulers held power for centuries. Zaydi theology is often regarded as closer to Sunni Islam in its legal and doctrinal interpretations, though it still retains the Shia belief in the Prophet’s family as the rightful leaders of the Muslim community.
See Also: Banu Hashim Family Tree
Shia Branches: Twelvers and Ismailis
After Husayn, the Shia Imams largely retreated from political life and focused on spiritual and scholarly pursuits. The fourth imam, Ali Zayn al-Abidin, survived the Battle of Karbala and led a quiet, scholarly life in Medina. His descendants continued this line of Imams, leading to the formation of the Twelver Shia, who believe in a line of twelve imams.
However, differences arose over the succession of the sixth imam, Ja’far al-Sadiq, a prominent scholar respected by both Sunni and Shia traditions. His death in 765 CE caused a split, as some followers believed his eldest son, Ismail, should succeed him, leading to the formation of the Ismaili sect. Those who followed his other son, Musa al-Kadhim, formed the Twelver branch, which remains the largest group of Shia Muslims today.
The Ismailis went on to establish dynasties and communities, most notably the Fatimid Caliphate, which ruled parts of North Africa and the Middle East. Today, Ismailis are led by the Aga Khan, who is considered the Imam of their community.