Stone sculpture with dragon pattern. Liao Dynasty (916-1125).
Stone sculpture with dragon pattern. Liao Dynasty (916-1125).

Nanjing (Liao dynasty)

historyancient-civilizationsurban-developmentarchaeology
4 min read

Beijing has been called many things. Youzhou, Nanjing, Yanjing, Zhongdu, Dadu, Beiping, Beijing -- each name represents not just a rebrand but a conquest, a new regime stamping its identity onto the same patch of ground on the North China Plain. During the Liao dynasty (907-1125), the Khitan rulers who controlled northern China designated the city as their southern capital and called it Nanjing, literally "southern capital." This is not the Nanjing on the Yangtze River that most people know. This Nanjing occupied what is now the southwestern portion of modern Beijing, centered on what was until 2010 called Xuanwu District. Its walls, gates, and markets lie beneath the streets of Xicheng District, invisible but mapped.

How the Khitans Got a Capital

The Liao dynasty acquired the city in 938, when the Later Jin -- one of five short-lived dynasties that ruled northern China after the collapse of the Tang -- ceded the Sixteen Prefectures to the Khitans. The city was then known as Youzhou, a garrison town with a history stretching back centuries but no pretension to imperial grandeur. The Liao renamed it Nanjing and designated it their Youdu Fu, one of five capitals in the empire's multi-capital system. In 1012, it was renamed again to Xijin Fu. Locals also called it Yanjing, a name that persisted long after the Liao fell. The city served as the empire's southern anchor, the point of contact between the nomadic Khitan heartland and the settled agricultural regions to the south.

Behind the Walls

Liao Nanjing inherited the walled city layout of Tang-era Youzhou, retaining its 26 neighborhood divisions and its market districts in the northern part of the city. The Liao converted the inner city into a walled imperial precinct with four gates. The city's defenses included a moat, likely the waterway once called the Stinking Water River, which ran along what is now Shoushui Hutong. The Fayuan Temple, one of Beijing's oldest surviving Buddhist temples, stood within the Liao city walls and was known during this period as the Minzhong Temple. The Tianning Temple Pagoda, built in 1120, remains one of the few Liao-era structures still standing in modern Beijing, a physical survivor from a city that otherwise exists only in archaeological traces and historical texts.

Fifty Soldiers in Disguise

The fall of Liao Nanjing reads like a spy thriller. When the Jurchen leader Wanyan Aguda founded the Jin dynasty and began dismantling the Liao empire, the northern, central, and eastern capitals fell in rapid succession. For Nanjing, the end came through subterfuge: Aguda sent a subordinate named Zhen Wuchen with fifty soldiers dressed as city residents to infiltrate and open the Yingchunmen gate from within. The Song dynasty, which had failed to capture the city militarily from the Khitans, subsequently managed to purchase it from the Jurchens. Song rule, under the new name Yanshan, proved short-lived. A complex chain of betrayals followed, culminating in the Jurchens' rapid advance on the Song capital of Kaifeng, where the Song emperor was captured in 1127, ending the Northern Song dynasty.

Buried Beneath Beijing

In 1151, the Jin dynasty relocated its capital to Yanjing, renaming it Zhongdu and expanding the city walls to the west, east, and south. Liao Nanjing's northern wall was extended, and gates were renamed. The southern capital of one dynasty became the central capital of another, each expansion overlaying what came before. When the Mongols arrived in the 13th century, Kublai Khan abandoned Zhongdu entirely and built his new capital of Dadu to the northeast. The Liao city, already enclosed within the Jin expansion, vanished beneath layer upon layer of subsequent development. Today, the traces of Liao Nanjing survive in the names of old hutong lanes, in the foundations unearthed during construction projects, and in the Beijing Liao and Jin City Wall Museum, which preserves a section of the water gate that once channeled a river through walls that defined a city no map now shows.

From the Air

The historical site of Liao Nanjing corresponds to the southwestern portion of modern Beijing, centered on the southern half of Xicheng District at approximately 39.89N, 116.35E. No visible surface remains define the Liao-era city boundaries, but the Tianning Temple Pagoda (built 1120) is a surviving Liao-era landmark. The Beijing Liao and Jin City Wall Museum preserves excavated wall foundations. Beijing Capital International Airport (ZBAA) is approximately 30 km northeast. Beijing Daxing International Airport (ZBAD) is about 42 km south.