Soon after being released, Teymourtash returned to Tehran and was appointed Minister of Justice in the cabinet of Hassan Pirnia ("Moshir al Dowleh"), with a mandate to initiate the process of modernizing the court system in Iran based on the French judicial model. However, the collapse of the Government shortly thereafter prevented Teymourtash from fundamentally restructuring the Iranian judicial system. Nonetheless, during his brief term as Minister of Justice, he succeeded in securing parliamentary approval to suspend the operation of certain courts and administrative bodies, and dismissed judges and magistrates deemed grossly incompetent. Moreover, given the necessity of expanding the purview of the secular judiciary, state courts were granted partial appellate jurisdiction over religious courts during Teymourtash's term as Minister of Justice. He resigned from Parliament for the balance of its term and served as Governor of Kerman for the following year and a half.