Kingdom of Dali
The Tang dynasty retaliated and by 873, Nanzhao had been expelled from Sichuan, and retreated back to Yunnan. Taking Chengdu marked the high point of the Nanzhao kingdom, and it was a watershed: from then on, the Nanzhao Kingdom slowly declined. n 902, the Nanzhao dynasty was overthrown, and it was followed by three other dynasties in quick succession, until Duan Siping seized power in 937 to establish the Kingdom of Dali.