Mir-Hossein Mousavi nominated Mousavi as his foreign minister, however Banisadr opposed the nomination and Mousavi was not appointed. On 15 August 1981, as part of the restructuring of the government in Rajai's cabinet, Mousavi was appointed foreign minister. He held the post until 15 December 1981, when he received the higher appointment of prime minister. In August 1981, President Mohammad-Ali Rajai and Prime Minister Mohammad-Javad Bahonar were assassinated in an explosion. Ali Khamenei was then elected as the third president of Iran in the Iranian presidential election, October 1981. He put forward Ali Akbar Velayati as his prime minister, but the Iranian
Mir-Hossein Mousavi as well as the conservative newspaper "Jomhouri-e Eslami", supported Mousavi's candidacy, he did not receive the official backing of any major conservative party. His candidacy made it harder for the conservatives to support Mahmoud Ahmadinejad, and large conservative parties, such as the Combatant Clergy Association, did not back the current President for a second term of office. Mousavi had on numerous occasions indicated his wish to change the constitution in order to remove the existing ban on the private ownership of television stations (currently all Iranian television stations are state-owned), as well as transfer the control of the law-enforcement forces