The 1979 Constitution designated the supreme leader as the head of state and the president and prime minister as the heads of government. The post of prime minister was abolished after the 1989 constitutional referendum.
The first Iranian presidential election was held on January 25, 1980 and resulted in the election of Abolhassan Banisadr with 76% of the votes. Banisadr was impeached on June 22, 1981 by Parliament. Until the early election on July 24, 1981, the duties of the president were undertaken by the Provisional Presidential Council. Mohammad-Ali Rajai was elected president on July 24, 1981 and took office on August 2. Rajai remained in office for less than one month, with both he and his prime minister being assassinated on August 30, 1981. Once again, a Provisional Presidential Council filled the office until October 13, 1981 when Ali Khamenei was elected president.
^ abcdArticle 131 of The Constitution of the Islamic Republic of Iran: In case of death, dismissal, resignation, absence, or illness lasting longer than two months of the President or when his term in office has ended and a new president has not been elected due to some impediments, or similar other circumstances, his first deputy shall assume, with the approval of the Leader, the powers and functions of the President. The Council, consisting of the Speaker of the Islamic Consultative Assembly, head of the judicial power, and the first deputy of the President, is obliged to arrange for a new President to be elected within a maximum period of fifty days. In case of death of the first deputy to the President, or other matters which prevent him to perform his duties or when the President does not have a first deputy, the Leader shall appoint another person in his place.[3]