 In 766, the city fell to a Qarluq ruler, allied with the nascent Uyghur Khaganate.Of the subsequent history of Suyab there is little record, especially after the Chinese evacuated the Four Garrisons in 787.David Nicolle states that Suyab provided 80,000 warriors for the Qarluq army and that it was governed by a man known as "King of Heroes".