Nanzhao
Nanzhao was a kingdom in today's Yunnan with its capital near Dali, created in 738 by Piluoge, who with Tang support united six principalities of the Bai and Yi peoples. In the 750s Nanzhao routed Tang armies and allied with Tibet, later drawing close to China again; in the 9th century its armies raided Sichuan and Annam. In 902 the minister Zheng Maisi massacred the ruling house, and the kingdom fell.