In 1979 the Iranian Revolution took place, and Iran's nuclear program, which had developed some baseline capacity, fell into disarray as "much of Iran's nuclear talent fled the country in the wake of the Revolution." Furthermore, Ayatollah Ruhollah Khomeini initially opposed nuclear technology, and Iran engaged in a costly war with Iraq from 1980 to 1988.