In protest at the Anglo-Persian Treaty of 1919, he relocated to Switzerland, from where he returned the following year after being invited by the new Iranian prime minister, Hassan Pirnia (Moshir-ed-Dowleh), to become his minister of justice.