An imam (; , plural: ; ) is an Islamic leadership position. It is most commonly in the context of a worship leader of a mosque and Muslim community by Sunni Muslims. In this context, imams may lead Islamic worship services, serve as community leaders, and provide religious guidance. For Shi'a Muslims, the imam has a more central meaning and role in Islam through the concept of Imamah; the term is only applicable to those members of the house of the prophet ahl al-Bayt, designated as infallibles.
Imamah means "leadership" and is a concept in Twelver theology. The Twelve Imams are the spiritual and political successors to Muhammad, the Prophet of Islam, in the Twelver branch of Shia Islam. According to Twelver theology, the successors to Muhammad are infallible human beings, who not only rule justly over the community, but are also able to maintain and interpret sharia and undertake the esoteric interpretation of the Quran. The words and deeds of Muhammad and the Imams are a guide and model for the community to follow. For this, the Imams must be free from error and sin and chosen by divine decree—nass—through the Prophet.