He underwent training in administration and soon joined the prosecutor’s office in Masjed Soleymān in southwestern Iran. Over the next six years, he gained further experience as a prosecutor for various jurisdictions, including Karaj city, Hamadan city, and Hamadan province. In 1985 he became deputy prosecutor in the country’s capital, Tehrān.