In 1964–65, before his exile from Iran, the Ayatollah Khomeini led his opposition to the Pahlavi dynasty from Qom. After the Islamic revolution in 1979, Khomeini spent time in the city before and after moving to Tehran.