Tibetan Empire
In 781 the Tibetan Empire conquered Yi Prefecture.