The 1979 Revolution, which ousted the pro-American Shah and replaced him with the anti-American Supreme Leader Ayatollah Ruhollah Khomeini, surprised the United States government, its State Department and intelligence services, which "consistently underestimated the magnitude and long-term implications of this unrest". Six months before the revolution culminated, the CIA had produced a report, stating that "Iran is not in a revolutionary or even a 'prerevolutionary' situation."