He studied Islamic philosophy and became a teacher in it. He was a key figure in the Islamic revolution and was President of Iran from 1981 to 1989. After Ruhollah Khomeini died, he was elected Supreme Leader by the Assembly of Experts on June 4, 1989.