Liao dynasty
In 938 they were ceded by Shi Jingtang of the Shatuo-led Later Jin to the Khitan-led Liao dynasty. The northern territories were then the site of contention between the subsequent Later Zhou, Song dynasty, and Liao dynasty.