大理国
Nanzhao existed for 165 years until A.D. 902. After 35 years of tangled warfare, Duan Siping () of the Bai birth founded the Kingdom of Dali, succeeding the territory of Nanzhao. Most Yi of that time were under the ruling of Dali. Dali's sovereign reign lasted for 316 years until it was conquered by Kublai Khan. During the era of Dali, Yi people lived in the territory of Dali but had little communication with the royalty of Dali.