Prime ministership of Mir-Hossein Mousavi secret negotiations and dealing with USA on helping them free the American hostages in Lebanon, in return for sale of the American weapons and spare-parts that Iran's army badly needed for Iran–Iraq War. Shortly after the end of Iran–Iraq War on 20 August 1988, Ruhollah Khomeini died, and Ali Khamenei was elected as the new Supreme Leader by the Assembly of Experts. Following his death, Mousavi and his fellow left-wingers lost their main source of support within the establishment. During the parliament hearing on post-war reconstruction plans, Mousavi had heated arguments with Ali Akbar Hashemi Rafsanjani, the speaker of Iran's
Mir-Hossein Mousavi many others believed the results to be fraudulent, suggesting that the Interior Minister, Sadegh Mahsouli, an ally of Ahmadinejad, interfered with the election and distorted the votes to keep Ahmadinejad in power. Mousavi has claimed victory, and called for his supporters to celebrate it, sparking large protests as a result. Due to protests, from the opposition, the Supreme Leader ordered a partial recount of the election results. The recount was a random counting of 10% of the ballots. In order to create transparency, a 12-member council showed the recount on television, and concluded that President Ahmadinejad still led Mousavi after