안사의 난
The Hexi Corridor was an important part of the Silk Road, connecting Central Asia with Northwest China. After the An Lushan Rebellion, the Hexi Corridor was occupied by the Tibetan Empire. Around the 770s or the 780s, Shazhou, otherwise known as Dunhuang, was occupied by the Tibetans.