Hassan Ayat Iranian Revolution but resigned from the party. Ayat joined the Islamic Republican Party and became a member of its central committee. He was elected as a member of Assembly of Experts for Constitution in Constitutional Convention election. After that, Ayat was elected as a member of Parliament from Tehran. He was one of the main leaders in impeachment of President Abulhassan Banisadr. He was opposed to the election of Mir-Hossein Mousavi as prime minister because he believed that Mir-Hossein Mousavi was a freemasonry agent who had penetrated in the political structure of the Islamic Republic of Iran to attempt the
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