Sixteen Prefectures

The Sixteen Prefectures (yellow) wedged between Liao (gray) in the north and Northern Song (light gray) in the south. Some distance to its west is Western Xia (deep gray)

The Sixteen Prefectures, more precisely known as the Sixteen Prefectures of Yan–Yun (traditional Chinese: 燕雲十六州; simplified Chinese: 燕云十六州; pinyin: Yān Yún Shíliù Zhōu) or the Sixteen Prefectures of You–Ji (Chinese: 幽薊十六州; pinyin: Yōu Jì Shíliù Zhōu), were a historical region in North China that comprises present-day municipalities of Beijing, Tianjin and parts of northern Hebei and Shanxi provinces north of the Hai River and its two northern tributaries Sanggan and Juma rivers. The region's name came from the sixteen military district prefectures (zhou) of the Tang dynasty's northeastern borderlands under the fanzhen administration of the Youzhou and Hedong jiedushi, whose administrative seats were in Yan Prefecture and Yun Prefecture, respectively.

Situated around the Great Wall within the Yan Mountains and Heng Mountain, the Sixteen Prefectures were a strategically important gateway region into the Central Plains and shielded the North China Plain from Hu incursions from the northeast, north and northwest, reinforced by riverine logistic transport of the Grand Canal.

During the Five Dynasties and Ten Kingdoms period, the region was ceded to the Khitan-led Liao dynasty in 938 AD by Shi Jingtang, who desperately sought Liao aid in his rebellion against his brother-in-law, the Later Tang emperor Li Congke. This cession subsequently caused various Central Plains dynasties to the region's south (including the Shatuo-led Later Jin dynasty founded by Shi Jingtang himself) to become vulnerable against invaders from the north (who used the region as a strategic staging area), as there were no longer any significant natural barriers north of the Yellow River capable of halting large-scale cavalry incursions. The region was marred by constant military conflicts for the next three centuries, both by the Central Plains regimes (such as the Later Zhou and the Northern Song dynasties) attempting to recapture the region and by new northern invaders (such as the Jurchen-led Jin dynasty and later the Mongol-led Yuan dynasty) against the old occupiers (the Liao and Jin dynasties, respectively), until the Mongol Empire conquered northern China in 1234 AD. After the Yuan dynasty, the region came under the control of the subsequent Ming and Qing dynasties.