Ayatollah Ali Khamenei played an important role in the movement that overthrew Shah Mohammad Reza Pahlavi in the 1979 revolution.