安史之亂
The Tibetans later defeated the Chinese and took control of the Four Garrisons. Khotan was first taken in 665, and the Khotanese helped the Tibetans to conquer Aksu. Tang China later regained control in 692, but eventually lost control of the entire Western Regions after it was weakened considerably by the An Lushan Rebellion.