Al-Mawardi was an influential Islamic jurist, scholar, and political theorist from Baghdad. In his work Al-Ahkam al-Sultaniyyah, he outlined the qualifications and duties of the caliph, or Islamic leader, including that the caliph must uphold justice, protect the faith, and ensure security, prosperity, and hope for the future. He discussed the appointment and roles of governors and ministers, the qualifications of voters in electing a caliph, and grounds for deposing a caliph if he loses his moral or physical abilities.