The term "Mahdi" refers to a messianic figure in Islamic eschatology, believed to be a future leader who will restore justice and righteousness before the Day of Judgment. The Mahdi is expected to emerge during a time of great turmoil and conflict, guiding the Muslim community and establishing a period of peace.
In Sunni Islam, the Mahdi is often seen as a descendant of the Prophet Muhammad, while in Shia Islam, he is identified with the twelfth Imam, Muhammad al-Mahdi, who is believed to be in occultation. The concept of the Mahdi plays a significant role in the beliefs and practices of many Muslims around the world.