Human Geography

Luoyang 874 Years, Xi'an 871: China's Longest-Serving Capitals, Only 3 Years Apart

Ranking 43 capital reigns across four millennia, Luoyang (874 years) and Xi'an (871 years) are nearly tied for first place, with Beijing third at 657. With charts and complete tables, this article traces how China's political center drifted from west to east, crossed south to Lin'an, and finally settled in Beijing.

Search this page

To see four thousand years of capitals on a map, open the Map of China's Ancient Capitals Through the Ages: drag the timeline to watch which capitals coexisted in any given year, and click a dot for its duration and sibling regimes. This article lays out all 43 capital reigns and explains why the political center moved east, then south, then back north. (Note: the map itself is currently in Chinese.)

Which city is China's greatest ancient capital? Fans of Luoyang and Xi'an each have their own case. But list every "regime + capital + start/end year" segment side by side, and the answer is surprisingly close: Luoyang 874 years, Xi'an 871 — a gap of just 3 years, shorter than a single dynastic transition.

1. The Ground Rules: 43 Reigns, Not 43 Cities

This article and the map use the same counting rule: one record equals one regime's continuous stay in one capital. When a regime moved its capital, the stay splits into separate records. The Northern Wei spent 107 years in Pingcheng and then 41 in Luoyang — that counts as two. The Jin dynasty moved from Shangjing to Zhongdu and then to Bianjing — three records.

Dates for the pre-Qin Xia, Shang and Zhou are approximations. China has exact chronology only from 841 BC (the first year of the Gonghe Regency). Durations are simple year subtraction, not month-precise accounting, so treat them as approximate. Rival regimes coexisted — the Three Kingdoms, the Northern and Southern Dynasties, and the Song-Liao-Jin-Xixia era — so the timeline often lights up several capitals at once.

This is not the popular "1,300 years of Luoyang" or "1,001 years of Xi'an" figure. Those numbers fold in short-lived rebel regimes, peasant states and secondary capitals, sometimes double-counting the same city. Here we count only the primary capitals of mainstream dynasties: 43 reigns across 16 cities.

2. Luoyang vs Xi'an: Only 3 Years Apart

Luoyang's 874 years come from 7 reigns: Eastern Zhou, Eastern Han, Cao Wei, Western Jin, Northern Wei, Wu Zhou and Later Tang. Xi'an's 871 years also come from 7: Western Zhou, Western Han, Xin, Western Wei, Northern Zhou, Sui and Tang. Two cities, seven reigns each, separated by only 3 years in total.

Beijing ranks third with 657 years from 4 reigns: Jin Zhongdu, Yuan Dadu, Ming Shuntianfu and Qing Beijing. Beijing started late, but once it became a capital it never really left. Counting from the Jin emperor Hailing's move to Yanjing in 1153, Beijing served as a dynastic capital until 1912, interrupted only by the first 53 years of the Ming.

Nanjing ranks fifth at 376 years, yet ties for the most reigns with 7 — the Eastern Jin and the Southern dynasties of Song, Qi, Liang and Chen continuously held it for 272 years, plus 53 years of the early Ming. The phrase "capital of six dynasties" refers to the Eastern Jin plus those four southern courts.

3. More Than One City Has Seven Reigns

Luoyang, Xi'an and Nanjing each host 7 reigns. Kaifeng has 6, Beijing 4. Many reigns mean a city was chosen again and again; few but long reigns mean stability once chosen.

Kaifeng's 6 reigns cluster in the Five Dynasties and Northern Song. The Later Liang, Later Jin, Later Han and Later Zhou all sat in Bianzhou for a combined 40 years; the Northern Song added 167; the late Jin fled the Mongols here for 20 more. Six regimes, only 227 years — under 40 per reign on average. That is not stability but turnover.

Linzhang (ancient Ye) has only 2 counted reigns, yet it is a genuine "six dynasties" candidate: Eastern Wei and Northern Qi, plus Cao Wei, Later Zhao, Former Yan and Ran Wei in earlier centuries. Only the Eastern Wei and Northern Qi are counted here, since the other four sit outside the main dynastic line.

4. One Year Can Have Several Capitals

Of the 43 reigns, 15 belong to unified dynasties, 23 to coexisting rival powers, and 5 to the pre-Qin era. Rivals make up more than half. That is not a statistical artifact — it is the norm of Chinese history.

The year 1120 is a perfect cross-section. The Northern Song sat in Kaifeng, the Liao in its Supreme Capital, the Xixia in Xingqing, and the Jin had just founded itself in Huining. Four capitals light up the map at once — in modern Kaifeng, Baarin Left Banner, Yinchuan and Acheng. None of them was a "pretender": each was a legitimate dynasty of its time.

The Wei-Jin and Northern-Southern dynasties lead with 15 reigns. In those 360 years, the north cycled through Northern Wei, Eastern Wei, Western Wei, Northern Qi and Northern Zhou while the south succeeded through Song, Qi, Liang and Chen — plus the aftershocks of the Three Kingdoms. Regimes rose and fell fast, and capitals moved with them.

5. Three Great Pivots of the Political Center

Arrange the 16 cities by their capital years and the migration path becomes clear.

The first pivot was west to east. The Western Zhou capital Haojing was at Xi'an, the Eastern Zhou at Luoyi (Luoyang), Qin at Xianyang, Western Han back at Chang'an, Eastern Han at Luoyang again. The pendulum between Chang'an and Luoyang swung for some 1,300 years — fundamentally a tug-of-war between the Guanzhong plain, protected by mountains, and the Central Plains, close to grain and population.

The second pivot was southward. After the Northern Song fell at Kaifeng, the court crossed south to Lin'an (Hangzhou). Nanjing had already hosted the Eastern Jin and the Southern dynasties. For the first time the political center left the Yellow River basin for good — tracing the southward shift of China's economic center of gravity.

The third pivot was north to stay. The Liao built its Supreme Capital in Baarin Left Banner, the Jin moved to Zhongdu (Beijing), and Yuan Dadu, Ming Shuntianfu and Qing Beijing followed. From 1153 on, Beijing has been the northern political center, broken only by the early Ming's 53 years. This line never turned back.

The dashed brown line on the map connecting Xi'an, Luoyang, Kaifeng, Hangzhou, Nanjing and Beijing sketches this migration. It is no single historical route — just the broad strokes of the political center's drift.

6. The Longest Single Reign: Eastern Zhou, 514 Years

Cumulative years measure cities; single reigns measure regimes. The Eastern Zhou at Luoyi leads with 514 years, spanning the Spring and Autumn and Warring States eras. Xia's Yangcheng follows at 470 (approximate). Then Shang at Bo (300), Tang at Chang'an (289) and Qing at Beijing (276).

The shortest are the Later Han at 4 years, Later Zhou at 9 and Later Jin at 11. The five dynasties of that era averaged barely a decade each, shuttling their capitals between Kaifeng and Luoyang. On the timeline this period flickers — a fitting image of the chaotic Five Dynasties and Ten Kingdoms.

RankRegimeCapital (historic name)Modern locationYearsDurationEra
1Eastern ZhouLuoyiLuoyang770–256 BC514 yrsPre-Qin
2XiaYangchengDengfeng2070–1600 BC470 yrsPre-Qin
3ShangBoShangqiu1600–1300 BC300 yrsPre-Qin
4TangChang'anXi'an618–907289 yrsSui-Tang-Five Dynasties
5QingBeijingBeijing1636–1912276 yrsYuan-Ming-Qing
6Western ZhouHaojingXi'an1046–771 BC275 yrsPre-Qin
7ShangYinAnyang1300–1046 BC254 yrsPre-Qin
8MingShuntianfuBeijing1421–1644223 yrsYuan-Ming-Qing
9LiaoSupreme CapitalBaarin Left Banner907–1125218 yrsSong-Liao-Jin-Xixia
10Western HanChang'anXi'an202 BC–8 AD210 yrsQin-Han
11Eastern HanLuoyangLuoyang25–220195 yrsQin-Han
12XixiaXingqingYinchuan1038–1227189 yrsSong-Liao-Jin-Xixia
13Northern SongBianjingKaifeng960–1127167 yrsSong-Liao-Jin-Xixia
14Southern SongLin'anHangzhou1127–1279152 yrsSong-Liao-Jin-Xixia
15Northern WeiPingchengDatong386–493107 yrsWei-Jin-N/S Dynasties
16Eastern JinJiankangNanjing317–420103 yrsWei-Jin-N/S Dynasties
17YuanDaduBeijing1271–136897 yrsYuan-Ming-Qing
18JinZhongduBeijing1153–121461 yrsSong-Liao-Jin-Xixia
19Liu SongJiankangNanjing420–47959 yrsWei-Jin-N/S Dynasties
20LiangJiankangNanjing502–55755 yrsWei-Jin-N/S Dynasties
21MingYingtianfuNanjing1368–142153 yrsYuan-Ming-Qing
22WuJianyeNanjing229–28051 yrsWei-Jin-N/S Dynasties
23Western JinLuoyangLuoyang265–31651 yrsWei-Jin-N/S Dynasties
24Cao WeiLuoyangLuoyang220–26545 yrsWei-Jin-N/S Dynasties
25Shu HanChengduChengdu221–26342 yrsWei-Jin-N/S Dynasties
26Northern WeiLuoyangLuoyang493–53441 yrsWei-Jin-N/S Dynasties
27JinHuiningAcheng1115–115338 yrsSong-Liao-Jin-Xixia
28SuiDaxingXi'an581–61837 yrsSui-Tang-Five Dynasties
29ChenJiankangNanjing557–58932 yrsWei-Jin-N/S Dynasties
30Northern QiYeLinzhang550–57727 yrsWei-Jin-N/S Dynasties
31Northern ZhouChang'anXi'an557–58124 yrsWei-Jin-N/S Dynasties
32Southern QiJiankangNanjing479–50223 yrsWei-Jin-N/S Dynasties
33Western WeiChang'anXi'an535–55722 yrsWei-Jin-N/S Dynasties
34JinBianjingKaifeng1214–123420 yrsSong-Liao-Jin-Xixia
35Eastern WeiYeLinzhang534–55016 yrsWei-Jin-N/S Dynasties
36Later LiangBianKaifeng907–92316 yrsSui-Tang-Five Dynasties
37Wu ZhouShenduLuoyang690–70515 yrsSui-Tang-Five Dynasties
38QinXianyangXianyang221–207 BC14 yrsQin-Han
39XinChang'anXi'an9–2314 yrsQin-Han
40Later TangLuoyangLuoyang923–93613 yrsSui-Tang-Five Dynasties
41Later JinBianKaifeng936–94711 yrsSui-Tang-Five Dynasties
42Later ZhouBianKaifeng951–9609 yrsSui-Tang-Five Dynasties
43Later HanBianKaifeng947–9514 yrsSui-Tang-Five Dynasties

7. Full Data for All 16 Ancient Capitals

RankModern locationReignsTotal yearsRegimes
1Luoyang7874 yrsEastern Zhou, Eastern Han, Cao Wei, Western Jin, Northern Wei, Wu Zhou, Later Tang
2Xi'an7871 yrsWestern Zhou, Western Han, Xin, Western Wei, Northern Zhou, Sui, Tang
3Beijing4657 yrsJin, Yuan, Ming, Qing
4Dengfeng1470 yrsXia
5Nanjing7376 yrsWu, Eastern Jin, Liu Song, Southern Qi, Liang, Chen, Ming
6Shangqiu1300 yrsShang
7Anyang1254 yrsShang
8Kaifeng6227 yrsLater Liang, Later Jin, Later Han, Later Zhou, Northern Song, Jin
9Baarin Left Banner1218 yrsLiao
10Yinchuan1189 yrsXixia
11Hangzhou1152 yrsSouthern Song
12Datong1107 yrsNorthern Wei
13Linzhang243 yrsEastern Wei, Northern Qi
14Chengdu142 yrsShu Han
15Acheng138 yrsJin
16Xianyang114 yrsQin

The table is sorted by cumulative years as capital. Dengfeng stands for Yangcheng, the early Xia capital; Shangqiu for Bo, the early Shang capital; Acheng for Huining, the first Jin capital. These three use the modern county-seat centers as approximate coordinates.

FAQ

Why isn't Luoyang credited with 1,300 years? A different yardstick. Popular figures fold in peasant regimes, short-lived states and secondary capitals, and sometimes double-count the same city. This article counts only the primary capitals of mainstream dynasties, segment by segment, which yields 874 years for Luoyang. Both numbers are "right" — they just measure different things.
Why are Xia, Shang and Zhou dates approximate? Exact Chinese chronology begins only in 841 BC with the Gonghe Regency. Earlier dates come from archaeological and textual inference, and scholars disagree on specific years. This article uses the commonly accepted approximations, flagged as such on the map and in the tables.
Why can one year have several capitals? Because rival regimes coexisted. The Three Kingdoms, the Northern and Southern Dynasties, and the Song-Liao-Jin-Xixia era all had multiple simultaneous courts, each with its own capital. Several dots lighting up at once on the timeline is not an error — it faithfully reflects the political landscape of the time.
Are the map coordinates the actual ruin sites? No. The map uses modern city centers for easy lookup and comparison. The actual ruins usually sit in the outskirts — Han-era Chang'an lies northwest of modern Xi'an, and the Yin ruins sit at Xiaotun in Anyang. The four county-level capitals (Dengfeng, Linzhang, Acheng, Baarin Left Banner) use approximate coordinates.
Why are the Republic of China and the PRC missing? The dataset ends in 1912 with the fall of the Qing. The Republican era saw rapid political change, with Nanjing, Beijing, Chongqing and Guangzhou each serving as capital or government seat — a different counting problem that needs separate treatment. Modern capitals fall outside the ancient sequence entirely.

Further Reading

  • Map of China's Ancient Capitals Through the Ages: drag the timeline through 43 capital reigns, search by dynasty, capital or modern city, and click through for durations and coexisting regimes. (Note: the map interface is automatically translated when opened from the English site, though some labels may remain in Chinese.)

Found this article useful? Buy the author a coffee

Running Planet Catcher takes ongoing time and hosting costs. Your support is what keeps this free geography content coming.

WeChat reward QR code

Open WeChat → Scan, and send a reward