Muhammad al-Mahdi
Muhammad al-Mahdi is the figure whom Twelver Shia Muslims recognize as the twelfth and final Imam. In this tradition, he is also the awaited Mahdi, a divinely guided leader expected to return at the end of time and establish justice. His life is understood through religious sources and theological tradition, while historians study how belief in the Hidden Imam developed during a period of uncertainty for the early Shia community.
The line of the Imams
According to Twelver accounts, Muhammad was born in Samarra in 869, the son of Hasan al-Askari, the eleventh Imam. His birth was said to have been kept private because Abbasid authorities closely watched the family, whose descendants were viewed by some as potential rivals. Reports differ in the details, and early sources reflect debate within the community about whether Hasan al-Askari had left a son.
After Hasan al-Askari died in 874, Twelver Shia doctrine holds that Muhammad entered the first period of concealment, known as the Minor Occultation. During this era, lasting until 941, four successive representatives are traditionally said to have conveyed questions and communications between the Imam and his followers. This structure allowed the community to preserve religious continuity while its leader remained out of public view.
The Hidden Imam
When the fourth representative died in 941, Twelver tradition says that communication through appointed deputies ended and the Major Occultation began. It is understood to continue today. According to this belief, al-Mahdi remains alive but hidden, and will reappear at a time determined by God. His return is associated with the defeat of injustice and the restoration of rightful order.
The doctrine emerged as Shia Muslims faced the disappearance of a publicly accessible Imam and uncertainty over succession. Rather than naming another Imam after Hasan al-Askari, Twelver scholars developed the understanding that his son was the final Imam, whose absence did not mean that divine guidance had ended. The belief became central to Twelver identity and its understanding of religious authority.
Religious and historical legacy
Al-Mahdi is revered across Twelver communities, especially in Iran, Iraq, and other parts of the Shia world. His name and titles appear in devotional practice, scholarship, and commemorations. The expectation of his return has shaped theology and ideas about justice, leadership, and the responsibility of believers during a period when the Imam is absent from public life.
Historical accounts cannot independently establish the theological claims surrounding his concealment, but the development of the tradition is an important part of Islamic history. Muhammad al-Mahdi remains the focal point of Twelver belief in the continuing presence and eventual return of the final Imam.


