Most Nanzhao were Bai people. They spoke Nuosu ("Yi"), a Tibeto-Burman language related to Burmese. They descended from the Cuan clan. The Cuan migrated from Taiyuan to Yunnan during Zhuge Liang's Southern Campaign in 225. By the fourth century they controlled Yunnan.