Prime ministership of Mir-Hossein Mousavi War. He guided the country through its war with Iraq, and earned popular acclaim for his stewardship of the national economy. He pioneered a bond-based economy, which many believe was responsible for a fair distribution of goods among the people throughout the Iran–Iraq War. Many analysts praise his handling of Iran's economy, his civil and economic leadership during the Iran–Iraq War, and his efforts to end Iran's international isolation. Others remember him as being "unpredictable" and less able to navigate Iran's labyrinthine political system than were his rivals. In 1986, Mousavi played a great role in the Iran–Contra affair and
History of the Islamic Republic of Iran parliament. Despite high turnout and large enthusiastic crowds for reformist opponent Mir-Hossein Mousavi, Ahmadinejad was officially declared to have won by a 2–1 margin against three opponents. Allegations of voting irregularities and protest by Mousavi his supporters were immediate and continued off and on into 2011. Some 36–72 were killed and 4000 arrested. Supreme Leader Ali Khamenei declared Ahmadinejad's victory a "divine assessment" and called for unity. He and others Islamic officials blamed foreign powers for fomenting the protest. However, by late 2010 several sources detected a "growing rift" between Ahmadinejad, and Khamenei and his supporters, with talk of impeachment