As the revolution gained momentum and the Shahs regime began to collapse in 1979, the US ultimately allowed Ayatollah Ruhollah Khomeini to return from exile in France and advised the Iranian military not to launch a coup, enabling the Islamic Republic to take power.