Shiite Islam emerged out of the tradition of the "Twelve Imams," considered the legitimate and infallible spiritual descendants of the Prophet Muhammad. Imams' decisions in Shiite Islam are binding and allegedly infallible, much like those of popes in the Catholic church.
More recently, Shiites have given the title of imam to their spiritual and political leaders, especially in Iran, where Ayatollah Ruhollah Khomeini, founding his own creatively opportune tradition, consolidated the notion of the spiritual and political guardian of the state under the all-encompassing banner of "supreme leader."
In Sunni Islam, imams are like eminent judges, some of whom, like Abu Hanifah, founded leading juridical schools.

