The Assembly of Experts, a deliberative body of Islamic theologians, is responsible for electing the Supreme Leader of Iran. They elected Ali Khamenei as the second Supreme Leader in 1989.
Ali Khamenei Challenge: Prove You're the Ultimate Ali Khamenei Master