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
2009 Iranian presidential election fact that this was the capital of Mousavi's home province, Eastern Azerbaijan, where Mousavi's rallies were well attended and which has traditionally given good turnouts for even "minor presidential candidates" who came from the province. Ahmadinejad also won Tehran province by over 50%, but crucially lost to Mousavi in the actual city of Tehran and was also soundly beaten in the affluent suburb of Shemiran to the north of the capital. Statistical analyses of the official election results were published in "Journal of Applied Statistics", an online note, in blogs and in "The Washington Post". Clashes broke out between police