Khamenei began his advanced religious studies at Qom under the most prominent Shīʿite scholars of the day, including Ruhollah Khomeini. From 1963 he was actively involved in protests against the monarchy, for which he was imprisoned several times by Iran’s security services.