After the Iranian Revolution of 1979, Ayatollah Khomeini installed Mehdi Bazargan as the Prime Minister of an interim government, which served until November 1979. The government resigned during the Iran hostage crisis, but mentioned that it has not been the sole reason, and the decision for mass resignation had been reached one day before the invasion of the United States embassy by the Iranian students.