"For a while" prior to investigation by the Iranian media, he "referred to himself" as "Ayatollah" on his personal website. However, according to Vatanka, the media "publicized his lack of formal religious education" and credentials, after which Raisi ceased claiming to hold the aforementioned rank. He now "refers to himself as "hojat-ol-eslam"", a clerical position lower in status and privilege. In 1981, he was appointed the prosecutor of Karaj. Later on, he was also appointed as Prosecutor of Hamadan and served both position together. He was simultaneously active in two cities more than 300 km away from each other. After four months, he was appointed as Prosecutor of Hamadan Province. He was appointed as Deputy prosecutor of Tehran in 1985 and moved to the capital. After three years and in early 1988, he was placed in the attention of Ruhollah Khomeini and received special provisions (independent from judiciary) from him to address legal issues in some provinces like Lorestan, Semnan and Kermanshah. Hussein-Ali Montazeri named Raisi as one of the four persons involved in the 1988 executions of Iranian political prisoners. Other persons were Morteza Eshraghi (Prosecutor of Tehran), Hossein-Ali Nayeri (Judge) and Mostafa Pourmohammadi (MOI representative in Evin). Names of first two persons are mentioned in Khomeini's order. Pourmohammadi has denied his role but Raisi has not commented publicly on the matter yet. After Khomeini's death and election of Ali Khamenei as the new Supreme Leader, Raisi was appointed as Tehran prosecutor by newly appointed Chief-Justice Mohammad Yazdi. He held the office for five years from 1989 to 1994. In 1994, he was appointed as head of General Inspection Office. From 2004 until 2014, Raisi served as First Deputy Chief Justice of Iran, being appointed by Chief Justice Mahmoud Hashemi Shahroudi. He kept his position in Sadeq Larijani's first term as Chief Justice. He was later appointed as Attorney-General of Iran in 2014, a position that he held until 2016, when he resigned to become Chairman of Astan Quds Razavi. He has also served as Special Clerical Court prosecutor. He became Chairman of Astan Quds Razavi on 7 March 2016 after the death of his predecessor Abbas Vaez-Tabasi. He is the second person to serve this office from 1979.