Akbar Hashemi Rafsanjani to Ruhollah Khomeini. This led to the establishment of Expediency Discernment Council, which later he chaired the council. He had an active role in Iran–Contra affair, which was divulged by Mehdi Hashemi and failed. Mehdi Hashemi was executed but Rafsanjani was the loser at internal dimension. In October 1981 presidential election, when he voted to Ali Khamenei, he said it's vote of "Imam (Khomeini), clerics and the parliament". During differences between Prime Minister Mir-Hossein Mousavi and Khamenei, Hashemi cleverly managed to keep the position favor or against these two perspectives and take the middle position. According to Bahman Bakhtiari, at
Mir-Hossein Mousavi sphere. When Khomeini, the founder of the Islamic Republic, died in 1989, Mousavi was no longer welcome in the government. It was the start of 20 years of an almost total absence from public life for Mousavi, which many considered as a sign of his disapproval of the established government, though he did sit on two high-level government councils. In 1989, Ali Khamenei named him as a member of the Expediency Discernment Council, his membership of which still continues. Mousavi has been a member of the Supreme Council of Cultural Revolution since 1996. He was also the political adviser of