Please note that the content of this book primarily consists of articles available from Wikipedia or other free sources online. 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 parliament did not give him the vote of confidence, and he was defeated with a vote of 80 to 74. Subsequently, Ali Khamenei, though he had strong disagreements with Mousavi, as a compromise with the left-leaning parliament, agreed to offer him, Mousavi, for the post of premier. On 28 October, the parliament approved Mousavi with a vote of 115 to 39. Mousavi became the 79th prime minister of Iran on 31 October 1981 , and remained the prime minister of Iran until 3 August 1989, for eight years.