It became the Uyghur main capital after a disastrous results of the Yenisei Kirghiz attack on the Uyghur northern capital Karabalgasun (Khanbalyk).
The change of capital for the Uyghurs was a direct result of the Yenisei Kirghiz attack and its devastating consequences.