The Iranian Revolution of 1979 established the first Islamic fundamentalist state. Long-term causes included the discovery of oil which foreign powers exploited, generating nationalist resentment. Immediate causes were widespread protests against the Shah's oppressive and western-aligned rule, led by Ayatollah Khomeini. The Shah fled in 1979 and Khomeini established an Islamic theocracy, imposing strict Islamic law and isolating Iran internationally. The revolution had significant regional impacts and tensions with Iraq and the West continue over Iran's nuclear program.