Tibetan Empire
In 790 the Tibetan Empire conquered Ting Prefecture.