Archaeological research show that as early as 800,000 years ago, humans began to settle in this region. In 111 BC, the
Han dynasty established counties in Yunnan area, and Shilin belonged to Tangao county (), Zangke
Jun () (another said Lügao County (), Yizhou Jun ()). After
Zhuge Liang marched to the south, Shilin was conquered and still by governed by Tangao County, Jianning Jun (). In the
Southern Dynasties it was dominated by
Cuanman clans, and in early
Tang dynasty it was under the jurisdiction of Quanma County () and Longdi County () in Nanning Prefecture (). later under Shicheng County (). In 742, Salü City () was built on Mount Xuedi () in today's Shilin urban, which can be seen as the establishment of the county seat today. In 1255
Möngke Khan established Luomeng Wanhufu (), and implemented
tusi system here. In 1270, Luomeng and other two Wanhufu compounded to Middle Lu Zongguanfu (). The Zongguanfu was separated to two
Lu, Shilin was
Lunan Zhou under
Chengjiang Lu.
Sani Qin clan is the tusi of Lunan Zhou. Lunan surrendered to
Ming dynasty in 1382 and still by governed by Chengjiang
Fu. == Administrative divisions ==