Shanggu in 117 A.D.

Shanggu: Han China › Youzhou.

Shanggu (上谷) is the commandery of the Yanqing and upper Sanggan basins, around Juyang (沮陽, Huailai), behind the Juyong pass. It holds Ningcheng (甯城), the seat of the Protector of the Wuhuan and Han's market and hostage town for the steppe.

Shanggu is where Han manages the steppe by other means than war. At Ningcheng, one of its counties, the Protector of the Wuhuan (護烏桓校尉) has kept his headquarters since AD 49, in charge of the Wuhuan and the Xianbei alike. In the Yongchu years (107–113) the regent gave the Xianbei chief Yanliyang (燕荔陽) a king's seal and settled him at Ningcheng, where a market for the Hu was opened and two hostage houses were built; 120 Xianbei bands each sent hostages. So the protector holds hostages from the bands that might raid. What came next: in the winter of 118 the Xianbei broke into Shanggu and attacked the Juyong pass.