Ali Akbar Velayati health from November 1980 to July 1981 in the cabinet of Mohammad-Ali Rajai. After winning the presidential election on 13 October 1981, then President Ali Khamenei proposed Velayati as his prime minister to the Parliament of Iran, but Parliament voted against him on 22 October. Khamenei later proposed Mir-Hossein Mousavi, who gained Parliament's approval. In November 1986, Velayati argued that Iran should have diplomatic ties with all countries. During the premiership of Mousavi, Velayati served as the minister of foreign affairs. After the election of Hashemi Rafsanjani as president, he retained his post until 1997, when Rafsanjani's term was ended.
Mir-Hossein Mousavi in Shiraz, "Haft-e-tir Martyr's tomb" in Tehran's Behesht-e Zahra, and "Salman mosque" in the presidential residence are examples of his work. In recent years, he has been more active in painting and has participated in many exhibitions. Mousavi refused to run for the presidency in the 1997 elections, which caused the reformists to turn to his former Cabinet Minister, then a little-known cleric, Mohammad Khatami, who was elected by a landslide. During Khatami's administration, Mousavi served as the Senior Adviser to the President. Mousavi was considered the leading candidate from the reformist alliance to run in the Iranian presidential election,