Sword & State / History by era / 960–1279 CE

繁體中文 · 简体中文 · 日本語

Song, Liao, Jin and Xia: China’s Rival Empires, 960–1279

960–1279 CEChina

For the three centuries and more of the Song dynasty, China was never ruled by a single state. The Song shared the map with the Khitan Liao, the Tangut Western Xia and the Jurchen Jin, and finally fell to the Mongols. War and treaty went side by side: yearly payments of silver and silk, border markets and diplomatic protocol decided the fate of states as much as battles did.

How it happened

How it began: the Chanyuan order

Founded in 960, the Song reunified the south but failed twice, in 979 and 986, to take the Sixteen Prefectures from the Khitan Liao. In 1004 the Liao emperor Shengzong and his mother, Empress Dowager Xiao, led an army south to Chanzhou on the Yellow River. The Treaty of Chanyuan, agreed in the 12th lunar month of 1004 (January 1005), had the Song pay the Liao 100,000 taels of silver and 200,000 bolts of silk a year and made the two states brothers. Broadly, it kept the peace between them for over a century.

What was at stake: payments, frontiers and reform

In 1038 Li Yuanhao proclaimed himself emperor of Western Xia. After a string of Song defeats in 1040–1042, the Song bought peace in 1044 with yearly gifts of silver, silk and tea in return for nominal Xia submission, and the Liao seized the moment to demand larger payments too. Army costs and payments strained Song finances, and from 1069 Wang Anshi’s New Policies tried to enrich the state and strengthen its army, setting off decades of factional struggle. A new offensive against Xia failed in 1081–1082, and the balance in the north broke only when the Jurchen rose.

How it ended: from Jingkang to Yamen

Wanyan Aguda founded the Jin in 1115; in 1120 the Song and Jin agreed to attack the Liao together, and the Liao fell in 1125. The Jin then turned south, took Kaifeng in 1127 and carried off the emperors Huizong and Qinzong, the Jingkang Incident, while Zhao Gou carried on the dynasty in the south. The Treaty of Shaoxing of 1141 fixed the border along the Huai River and the Dasan Pass, and Yue Fei was put to death early in 1142. In the 13th century the Mongols destroyed Western Xia in 1227 and, with Song help, the Jin in 1234; the Southern Song ended with the sea battle at Yamen in 1279.

Timeline

  1. Treaty of ChanyuanDiplomacy

    With the Liao army at Chanzhou, its commander Xiao Talin was killed by a Song crossbow bolt; soon afterwards Emperor Zhenzong, pressed by Kou Zhun, crossed the Yellow River to the city’s northern fort. Peace followed: the Song paid 100,000 taels of silver and 200,000 bolts of silk a year, and the two courts called each other brothers for more than a century.

  2. Li Yuanhao founds Western XiaPolitics

    The Tangut leader Li Yuanhao declared himself emperor of Great Xia, known to the Song as Western Xia, with its capital at Xingqing (modern Yinchuan). He had already issued a Tangut script in 1036 and set up a Chinese-style bureaucracy, creating a third empire beside the Song and the Liao.

  3. Song–Xia war and the Qingli peaceDiplomacy

    The Song lost three major battles, at Sanchuankou, Haoshuichuan and Dingchuanzhai. In the 1044 settlement Xia accepted nominal vassal status, and the Song gave it, with festival gifts, 72,000 taels of silver, 153,000 bolts of silk and 30,000 jin of tea a year. The Liao had already used the crisis in 1042 to raise its own payments by 100,000 each of silver and silk.

  4. Wang Anshi’s New PoliciesReform

    Emperor Shenzong backed Wang Anshi’s New Policies, including state loans to farmers, payment in place of labor service, local militia groups and state trading, to raise revenue, ease the burden of service and strengthen the army. Sima Guang led fierce opposition; after Shenzong died in 1085 the policies were repealed for a time, and the feud between reformers and conservatives lasted to the end of the Northern Song.

  5. The five-pronged invasion of Xia and the loss of YongleWar

    Seeing turmoil at the Xia court, Shenzong sent armies along five routes into Xia, but they failed to take Lingzhou and withdrew. In 1082 a large Xia army besieged and took Yongle, a new Song fortress on the frontier, at heavy cost to the Song, and the plan to crush Xia by force collapsed.

  6. The Alliance Conducted at Sea and the fall of the LiaoDiplomacy

    Wanyan Aguda founded the Jin in 1115 and beat the Liao again and again. Song envoys crossed the sea to reach him, and in 1120 the two sides agreed to attack the Liao together: the Jin would take its Central Capital, the Song would take Yanjing, and the payments once made to the Liao would go to the Jin. The Song attacks failed, and the Song had to pay silver, silk and cash to receive Yanjing and six other prefectures from the Jin. In 1125 the Jin captured the last Liao emperor, Tianzuo.

  7. The Jingkang Incident ends the Northern SongWar

    The Jin twice besieged Kaifeng; Huizong had already abdicated to his son Qinzong before the first siege. The city fell in January 1127, and that spring the Jin carried both emperors and more than 14,000 people, much of the imperial clan among them, off to the north. That summer Prince Zhao Gou took the throne at Yingtian (modern Shangqiu, Henan) as Emperor Gaozong.

  8. The Treaty of Shaoxing and the death of Yue FeiDiplomacy

    When the Jin invaded again in 1140, Yue Fei struck north and won at Yancheng and elsewhere. Gaozong and his chief minister Qin Hui chose peace and recalled the generals; the 1141 treaty set the border along the Huai River to the Dasan Pass, made the Song a vassal of the Jin and required 250,000 taels of silver and 250,000 bolts of silk a year. In January 1142 Yue Fei was put to death on charges summed up by the phrase mo xu you, perhaps there was something.

  9. Battle of CaishiWar

    The Jin ruler Wanyan Liang invaded in force and tried to cross the Yangtze. At Caishi the Song official Yu Yunwen took charge and used paddle-wheel warships to beat back the crossing. Wanyan Liang was soon murdered by his own officers, a rival had already been enthroned as Emperor Shizong, and a new Song–Jin treaty followed in 1165.

  10. The Mongols invade the JinWar

    Genghis Khan invaded the Jin and smashed its army at Yehuling, then raided deep into north China year after year. In 1214 the Jin moved their capital from Zhongdu (modern Beijing) south to Kaifeng, and in 1215 Zhongdu fell, costing the Jin their northern heartland.

  11. Western Xia and the Jin fall to the MongolsWar

    The Mongols destroyed Western Xia in 1227, the year Genghis Khan died. In 1233 the Southern Song joined the Mongols against the Jin; when Caizhou fell in 1234 the Jin emperor Aizong killed himself. With the common enemy gone, the Song and the Mongols quickly turned from allies into enemies.

  12. Battle of Yamen: the end of the SongWar

    In 1276, with Yuan armies closing on Lin’an, the Song court surrendered, but loyal ministers enthroned young princes and fought on along the southeast coast. At the sea battle of Yamen, near modern Jiangmen in Guangdong, the Yuan commander Zhang Hongfan defeated Zhang Shijie’s fleet, and the chief minister Lu Xiufu leapt into the sea carrying the child emperor Zhao Bing, ending the Song.

Key figures

Kou Zhun

寇準 · 961–1023

Song chief minister who pushed Zhenzong to Chanzhou

When the Liao invaded in 1004 and other ministers urged flight to the south, he insisted the emperor go to the front at Chanzhou, setting up the conditions for the Chanyuan settlement. Soon afterwards rivals forced him from office, and he died in exile at Leizhou.

Xiao Chuo (Empress Dowager Chengtian)

蕭綽(承天太后) · 953–1009

Liao regent who led armies against the Song

After her husband died in 982 she ruled as regent for her son Shengzong, twelve by Chinese reckoning and about ten by Western count, beat back the Song northern offensive of 986 and in 1004 led the army south with him. Chinese chronicles give her much of the credit for the strength of Shengzong’s reign.

Li Yuanhao (Emperor Jingzong of Western Xia)

李元昊(西夏景宗) · 1003–1048

Founder of Western Xia, its script and government

He issued the Tangut script in 1036, proclaimed himself emperor in 1038 and beat the Song repeatedly in the early 1040s. The 1044 settlement made him a vassal in name only, while bringing him annual silver, silk and tea and border trade.

Wang Anshi

王安石 · 1021–1086

Song chief minister behind the New Policies

From 1069 he led the reform program and became chief minister in 1070, using state loans, paid labor service and local militias to fix the finances and the army. Fierce opposition forced him out in 1074; he returned the next year but left office for good in 1076, and the quarrel outlived him by decades; he is also counted among the Eight Great Prose Masters of the Tang and Song.

Wanyan Aguda (Emperor Taizu of Jin)

完顏阿骨打(金太祖) · 1068–1123

Jurchen leader who founded the Jin and broke the Liao

He rose against the Liao in 1114, proclaimed the Jin in 1115, beat much larger Liao armies and made the sea-borne alliance with the Song. He died in 1123; two years later his brother, Emperor Taizong, captured the last Liao emperor and turned his armies on the Song.

Zhao Ji (Emperor Huizong of Song)

趙佶(宋徽宗) · 1082–1135

Artist-emperor captured in the Jingkang Incident

A celebrated painter and calligrapher who created the slender gold style of writing, he made the alliance with the Jin. As Jin armies approached he abdicated to his son Qinzong, and after Kaifeng fell both were carried north, where Huizong died in captivity.

Yue Fei

岳飛 · 1103–1142

Southern Song general executed after his campaigns against the Jin

In 1140 he drove north, beat the Jin at Yancheng and elsewhere and came within reach of Kaifeng, only to be recalled; he was put to death early in 1142 and cleared by Emperor Xiaozong in 1162. The stories that his mother tattooed a loyalty slogan on his back and that he wrote the poem Man Jiang Hong are both disputed by historians.

Qin Hui

秦檜 · 1091–1155

Southern Song chief minister who made peace with the Jin

Taken north by the Jin in 1127, he later returned and served for years as chief minister, negotiating peace with the Jin and taking command away from the generals. Yue Fei’s death made his name a byword for treachery, and a kneeling statue of him still faces Yue Fei’s tomb in Hangzhou.

What would you do?

Pick an option to see what each path risked, and what was really decided.

Emperor Zhenzong of Song, winter 1004

Do you go to the front, or move the court south?

The Liao emperor and his mother, Empress Dowager Xiao, have led a great army south, bypassing the strong cities of Hebei; their vanguard is near Chanzhou on the north bank of the Yellow River, not far from your capital at Kaifeng. Your ministers are divided: Wang Qinruo wants to move the court to Shengzhou (modern Nanjing), Chen Yaosou to Yizhou (modern Chengdu), while chief minister Kou Zhun urges you to go north to Chanzhou in person. Through the captured Song general Wang Jizhong, the Liao have already hinted several times that they would talk peace.

Emperor Gaozong of Song, summer 1140

Press on north, or recall the generals and make peace?

The Jin have torn up last year’s treaty, which had returned Henan to you, and invaded again. Yue Fei and other generals have struck north and won at Yancheng and elsewhere; their vanguard is near the old capital, Kaifeng. But your mother, Lady Wei, is still a captive of the Jin, as is your late father Huizong’s coffin, and the generals’ armies have grown so large that the court struggles to control them. Your chief minister Qin Hui urges peace.

Quiz: how well do you know this era?

Six questions, each explained as you answer.

What annual payment did the Treaty of Chanyuan set for the Song to give the Liao?

Who proclaimed himself emperor of Western Xia in 1038?

Who were the parties to the Alliance Conducted at Sea of 1120?

Which two emperors were carried off by the Jin in the Jingkang Incident?

Under the 1141 Treaty of Shaoxing, which river formed the eastern Song–Jin border?

At the Battle of Yamen in 1279, who leapt into the sea carrying the child emperor?

Play this era

Sword & State: Song–Liao–Jin–Xia

War and peace both have a price: weigh tribute, frontier defence and alliances from Chanyuan to Shaoxing.

Free public test: sign in with a free account to play.

Sign in and play free → About the game

Questions people ask

What was the Treaty of Chanyuan?

The Treaty of Chanyuan was the peace the Song and the Liao agreed at Chanzhou on the Yellow River in the 12th lunar month of 1004, which fell in January 1005. The Song paid the Liao 100,000 taels of silver and 200,000 bolts of silk a year, the two states became brothers, and both agreed not to build new frontier fortifications. It kept the two empires broadly at peace for more than a century.

What is the difference between the Northern and Southern Song?

The dividing line is the Jingkang Incident of 1127. The Northern Song (960–1127) ruled from Kaifeng until the Jin captured it and carried off two emperors; the Southern Song (1127–1279) was continued in the south by Zhao Gou, Emperor Gaozong, and later governed from Lin’an (modern Hangzhou). They are one dynasty with different territory and capitals.

Why was Yue Fei executed?

Yue Fei was put to death because Emperor Gaozong and his chief minister Qin Hui had decided to make peace with the Jin, and the charges against him had no real basis; the phrase mo xu you, perhaps there was something, became a byword for a trumped-up case. The court wanted to end the war, take armies back from the generals and bring home Gaozong’s mother, and a powerful general who wanted to fight on stood in the way. He was killed early in 1142 and rehabilitated by Emperor Xiaozong in 1162.

When did the Song dynasty end?

The Song ended in 1279 with the Battle of Yamen. The court at Lin’an had surrendered to the Yuan in 1276, but loyalists enthroned young princes and fought on; when their fleet was destroyed at Yamen, Lu Xiufu leapt into the sea with the child emperor Zhao Bing, and the dynasty was over.

How did Western Xia come to an end?

Western Xia was destroyed by the Mongols in 1227. Genghis Khan raided it from 1205, forced its submission in 1210, and after the Xia broke with him he returned to finish it in 1227, dying the same year. The state had lasted about 190 years; most of its records were lost, and the Tangut script later fell out of use.

Sources and further reading

Dates follow the sources listed; where they disagree, the text says so.

Updated 2026-12-02