He served from 1982 to 1989 as Minister of the Revolutionary Guards where he quashed internal dissent and obtained weapons from abroad for the Iran–Iraq War.