Aftermath of the Iranian Revolution
Following the Iranian Revolution, which overthrew the Shah of Iran, in February 1979, Iran was in a "revolutionary crisis mode" from this time until 1982 or 1983 when forces loyal to the revolution's leader, Ayatollah Ruhollah Khomeini, consolidated power. During this period, Iran's economy and the apparatus of government collapsed; its military and security forces were in disarray.
Rebellions by Marxist guerrillas and federalist parties against Islamist forces in Khuzistan, Kurdistan, and Gonbad-e Qabus started in April 1979, some of them taking more than a year to suppress. Concern about breakdown of order was sufficiently high to prompt discussion by the US National Security Advisor Zbigniew Brzezinski over the danger of a Soviet invasion/incursion (the USSR sharing a border with Iran) and whether the US should be prepared to counter it.
By 1983, Khomeini and his supporters had crushed the rival factions and consolidated power. Elements that played a part in both the crisis and its end were the Iran hostage crisis, the invasion of Iran by Saddam Hussein's Iraq, and the presidency of Abolhassan Banisadr.