In 1922, the Soviets came to an agreement with the Iranian government to withdraw their troops, especially those assisting the Gilan Republic, and soon after the English declared they would be withdrawing their troops. Ultimately, the Soviets told Mirza that the Soviet Republic, due to changed circumstances, was compromised. As a result, there was an internal conflict in which the leader of the communists, Heidar Amou Oqli, was killed, the "Revolutionary Committee" of the Soviet Republic fell apart, the Jangalis were defeated by Reza Khan and Mirza, along with his German companion, froze to death as they tried to escape Khan's men.