Shanglin
上林
Shanglin was a Zhuang native chieftaincy in the upper Youjiang valley of northwestern Guangxi. In 1337 it was the Shanglin dong, part of the Yuan Lai'an Route.
The Ming made it a Chief's Office in 1409 under Cen Zicheng, son of the Sicheng chief Cen Shanzhong, so a branch of the Cen clan ruled it. In the Chenghua era Sicheng's chief Cen Bao attacked it, and its seat moved west under the protection of Guangnan in Yunnan. A Cen native prefect seized eighteen towns including Shanglin in 1490, then withdrew. Under Wanli the office was abolished and its land split between Guangnan and Sicheng; the Qing set up Xilin county there in 1666.