How did Ayotalloh Khomeini gain power?

The Ayatollah had a long period of dissidence with the Shah of Iran. He objected to what he believed was the Shahâ??s departure from Islamic law and his acceptance of western standards that would, he believed, result in an influx and eventual takeover by BaHa'i culture. Their relationship deteriorated to the point of the Ayatollah being exiled to Paris. Efforts to discredit Khomeini, as well as other student grievances, brought about the revolution of 1978. The Ayatollah returned to Tehran and engaged in resistance efforts, such as encouraging all to violate a military mandated curfew After the military withdrew, an Islamic government was approved by widespread demand and Khomeini became the Supreme Leader in 1979.