History of Yuxi
The city was founded in 960 AD, at a time when Yunnan was not yet part of China. Yuxi was once the core area of Yunnan Province during the Previous Qin Dynasty (period before 221 BC). In the Western Han Dynasty (206 BC-24 AD), it became a county of Yizhou Shire. The following dynasties witnessed the continuous separations and unifications of the area. It was not until 1997 that Yuxi became a prefecture-level city of the People’s Republic of China.
Source From: https://en.wikipedia.org/wiki/Yuxi#History