While Carter was beginning his term in office, the Shah was close to ending his 26 years as ruler of Iran. Radical Islamists, led by the Ayatollah Khomeini were organizing to depose the Shah.