In 1977, Sayyid Khamenei helped established the Combatant Clerics Association, which became the basis of the Islamic Republic Party. In January 1979, Ayatollah Khumayni appointed Sayyid Khamenei as a member of the Revolutionary Council. In March of the same year, he helped establish the Islamic Republic Party and served in its Central Council. In 1980, Ayatullah Khumayni appointed him the leader of the Friday congregational prayers in Tehran. He was also elected as a deputy of the Islamic Consultative Assembly in the same year. In the summer of 1981, an attempt was made on his life by the Mojahedin Khalq Organization (an outlawed terrorist movement) while delivering a speech at a mosque in Tehran. Although he survived the explosion, his chest and hand were badly injured. Following President Rajai’s assassination in 1981, Sayyid Khamenei was elected president of the Islamic Republic with 95% of the votes cast in his favor. He was president for another four years. In 1989 he received the title of “Ayatollah” from the Theological School of Qom; and in June of the same year, following the death of Ayatollah Khumayni, he was elected Vali-e Faqih (Supreme Leader of the Islamic Republic) by a majority of votes by the directly elected Assembly of Experts.