Nanzhao (, also spelled Nanchao, Southern Zhao) was a dynastic kingdom that flourished in what is now southern China and northern Southeast Asia during the 8th and 9th centuries. It was centered on present-day Yunnan in China.
Nanzhao encompassed many ethnic and linguistic groups. Some historians believe that the majority of the population were the Bai people and the Yi people, but that the elite spoke a variant of Nuosu (also called Yi), a Northern Loloish language. Scriptures unearthed from Nanzhao were written in the Bai language. The Cuanman people came to power in Yunnan during Zhuge Liang's Southern Campaign in 225. By the fourth century they had gained control of the region, but they rebelled against the Sui dynasty in 593 and were destroyed by a retaliatory expedition in 602. The Cuan split into two groups known as the Black and White Mywa. The White Mywa (Baiman) tribes, who are considered the predecessors of the Bai people, settled on the fertile land of western Yunnan around the alpine fault lake Erhai. The Black Mywa (Wuman), considered to be predecessors of the Yi people, settled in the mountainous regions of eastern Yunnan. These tribes were called Mengshe (蒙舍), Mengxi (蒙嶲), Langqiong (浪穹), Tengtan (邆賧), Shilang (施浪), and Yuexi (越析). Each tribe was known as a zhao. In academia, the ethnic composition of the Nanzhao kingdom's population has been debated for a century. Some non-Chinese scholars subscribed to the theory that the Tai ethnic group was a major component and later moved south into modern-day Thailand and Laos. The historiography of the origins of Nanzhao people has attracted much interest.
In 649, the chieftain of the Mengshe tribe, Xinuluo (細奴邏, Senola), son of Jiadupang and grandson of Shelong, founded the Great Meng (大蒙) and took the title of Qijia Wang (奇嘉王; "Outstanding King"). He acknowledged Tang suzerainty. In 652, Xinuluo absorbed the White Mywa realm of Zhang Lejinqiu, who ruled Erhai Lake and Cang Mountain. This event occurred peacefully as Zhang made way for Xinuluo of his own accord.