靖康の変
In the early years of the Northern Song Dynasty (960–1127), the sixteen ceded prefectures continued to be an area of contention between the Song dynasty and the Liao dynasty. Later the Southern Song Dynasty abandoned all of North China, including Shanxi, to the Jurchen Jin dynasty (1115–1234) in 1127 after the Jingkang Incident of the Jin-Song wars.