Under Iran's clerical system, the powers of the elected president are circumscribed by those of the hardline supreme leader, Ayatollah Ali Khamenei, in office since 1989.