He had a determining role in dismissal of Abulhassan Banisadr as commander-in-chief of Iranian military and then his impeachment in the parliament as Iran's first president in June 1981.
In October 1981 presidential election, when he voted to Ali Khamenei, he said it's vote of "Imam (Khomeini), clerics and the parliament".