He was the Minister of Foreign Affairs for more than fifteen years from December 1981 to August 1997 under Prime Minister Mir-Hossein Mousavi and Presidents Ali Khamenei and Akbar Hashemi Rafsanjani. 