Uyghur Khaganate
In 803, the Uyghurs of the Uyghur Khaganate seized Turfan from the Tibetans. The Uyghur Khaganate however was destroyed by the Kirghiz and its capital Ordu-Baliq in Mongolia sacked in 840. The defeat resulted in the mass movement of the Uyghurs out of Mongolia and their dispersal into Gansu and Central Asia, and many joined other Uyghurs already present in Turfan. In the early twentieth century, a collection of some 900 Christian manuscripts dating to the ninth to the twelfth centuries was found at a monastery site at Turfan.