Career
He is currently Vice President for Legal and Parliamentary Affairs since September 1, 2013. Previously held office from October 12, 2004 to August 29, 2005, appointed by President Mohammad Khatami. He replaced the resigning Mohammad-Ali Abtahi and was replaced by Mohammad-Reza Rahimi (as appointed by President Mahmoud Ahmadinejad).
Previously, he has been a representative of Tehran in the Parliament of Iran until 2004.
Ansari has openly supported Sadegh Khalkhali, the hanging judge and his serial executions.