The Tang Chinese inflict a devastating defeat…
843 CE
The defeat and collapse of the Uyghur Khaganate triggers a massive migration of Uyghurs from Mongolia into Turfan, Kumul, and Gansu where they found the Kingdom of Qocho and, in around 894, the Ganzhou Uyghur Kingdom.