Hoja Niyaz marched his troops across Dawan Ch'eng to Toksun, where he was defeated at the Battle of Toksun by Tungans under General Ma Shih-ming.[2] Hoja Niyaz then fell back to Kashgar on January 13, 1934, retreating from Aksu through a 300 miles-long march by Tengri Tagh mountain road along the Soviet/Chinese border, bypassing this way general Ma Fuyuan's Tungan forces who waited him on the main road from Aksu to Kashgar, and assumed the Presidency of the self-proclaimed Turkish Islamic Republic of Eastern Turkestan or First East Turkestan Republic. Joining the break-away republic went against his deal of June 4, 1933 with Sheng Shicai (the so-called Jimsar Agreement in 7 articles, in this Agreement Hoja-Niyaz dropped his claims to Northern Xinjiang or Jungaria in exchange of recognizing his rights for the whole territory south of Tengri Tagh, including Kashgaria, Turpan Depression and Kumul Depression, in this Agreement all this vast territory was granted " Autonomy " and Chinese promised not to cross Tengri Tagh, that divides Xinjiang onto two parts ). However, offensive of Tungan forces, direct Soviet military intervention into Xinjiang and Soviet ultimate support of Sheng Shicai led to the defeat of East Turkestan Republic by June 1934.