'Linhuang Prefecture') was the primary capital city of the Liao dynasty of China, during which it was also known as Shangjing (Chinese: 上京; lit.
The Liao took in large groups of Han Chinese refugees, many of whom were resettled in the capital as well as neighboring towns in the steppe, together with captured soldiers and civilians from northern China.
The capital saw large-scale expansion and rebuilding in 926, after the Liao conquest of Bohai, including the addition of a southern "Han City" and the completion of imperial palaces.
Despite Linhuangfu being the Supreme Capital, the Khitan court maintained their mobile lifestyle, constantly traveling across the empire.
The former housed the imperial family and the ruling elite, while the latter was the residence of Han Chinese and other non-Khitan populations.