Ata-Malik Juvayni
In 1132, he was proclaimed Gurkhan by his followers and adopted the regnal name "Emperor Tianyou" (天佑皇帝). He established his authority over Almaliq and Qayaliq (near Taldıqorğan). To the west was the disorganized Kara-Khanid Khanate that had split into two. The Eastern Karakanid ruler of Balasaghun, Ibrāhīm II b. Ahmad, invited him to help fight the Karluks and Kankalis, and in 1134 Dashi took the opportunuty to depose him, and according to Persian historian Ata-Malik Juvayni, "ascended a throne that had cost him nothing." He made Balasaghun his new capital and took over 16,000 Khitans that had served the old ruler. He spread his power over Jetysu (eastern Kazakhstan). He sent two armies east to attack the Jurchens, which failed. He gained control over what is now Xinjiang. In May 1137 he defeated a Western Karakhanid ruler at Khujand and then spent several years consolidating his power in the Ferghana valley and Tashkent, thereby expanding his empire to the west and south.