Yun County or Yunxian () is a county in the southwest of Yunnan province, China. It is the easternmost county-level division of the prefecture-level city of Lincang. Yun County borders Jingdong County across the Lancang River to the east, Linxiang District and Gengma County to the south, Fengqing County and Yongde County to the west and Nanjian County across the Lancang River to the north.
Yun County has 7 towns, 2 townships and 3 ethnic townships.
According to the Yun County Gazetteer (2006:527), the Limi (), a Yi subgroup, and Dai, both located in Xingfu Township (), preserve both their traditional clothing and language. However, the following peoples preserve their language, but not their traditional clothing.