An Islamic state is a state that has adopted Islam, specifically Sharia, as its foundations for political institutions, or laws, exclusively, and has implemented the Islamic ruling system khilafah (Arabic: خلافة), and is therefore a theocracy. Although there is much debate as to which states or groups operate strictly according to Islamic Law, Sharia is the official basis for state laws in the following countries: Afghanistan, Iran, Mauritania, Saudi Arabia, Somalia, Sudan, and Yemen. In Nigeria, the constitution provides that states may elect to use Shari'a laws and courts, though non-Muslims are not required in any state to submit to Shari'a jurisdiction and adherence varies by state.[7]
Saudi Arabia maintains religious courts for all aspects of law and has religious police to maintain social compliance. Also, Iran maintains religious courts for all aspects of law and has religious police to maintain social compliance,[citation needed] while its government is described by the US Central Intelligence Agency as a "theocratic republic".[8] Iran's head of state, or Supreme Leader, is appointed by an elected body called Assembly of Experts.[8][9] The Council of Guardians, considered part of the executive branch of government, is responsible for determining if legislation is in line with Islamic law and customs (the Sharia), and can bar candidates from elections, and greenlight or ban investigations into the election process.[8] Pakistan has Islam as its only official religion and its Federal Shariat Court has the duty of striking down any law not complying with the Sharia code of Islamic law; however, ruling falls upon legal scholars who, while required to be Muslim, are not religious clergy.