He was appointed minister of energy in the government of Mir-Hossein Mousavi in 1988. He also served as the energy minister in Akbar Hashemi Rafsanjani"s cabinet and made massive efforts for reconstruction and rehabilitation of the country"s water and electricity industry in the aftermath of the 1980-1988 Iran-Iraq War and the damages caused to the industry in the Iraqi attacks.