
“We are the successors of Goguryeo. That is why our country is called Goryeo.”
In the late tenth and early eleventh centuries, the Korean peninsula stood at the crossroads of a rapidly shifting geopolitical world. To the north, the Khitan Liao dynasty had risen as one of the most formidable military powers in East Asia, having already humbled the mighty Song dynasty of China. Between 993 and 1019 CE, the Khitans launched three devastating invasions of Goryeo, the unified Korean kingdom that had replaced the fractured Later Three Kingdoms just decades earlier. What followed was a generation-long struggle that tested Goryeo’s armies, its diplomats, and its very sense of national identity — and ultimately ended in one of the most remarkable military reversals in Korean history.
Quick Facts: The Goryeo–Khitan War
| Conflict | Goryeo–Khitan War (Three Invasions) |
|---|---|
| Dates | 993 CE – 1019 CE |
| Belligerents | Goryeo Kingdom vs. Khitan Liao Dynasty |
| Key Goryeo Figures | Seo Hui (diplomat), Gang Gam-chan (general) |
| Key Battles | Negotiations of 993; Siege of Gwiju (1019) |
| Outcome | Goryeo repels all three invasions; retains sovereignty |
| Goryeo Capital | Gaegyeong (modern Kaesong, North Korea) |
| Legacy | Goryeo expands to the Yalu River; Tripitaka Koreana commissioned |
The World That Made the War: Goryeo and the Khitan Liao Dynasty
To understand the Goryeo–Khitan War, one must first appreciate the dramatic reshaping of East Asia in the tenth century. The Tang dynasty’s collapse in 907 CE had shattered the old order, leaving a power vacuum that the Khitan people — a semi-nomadic group from the northeastern steppes — were uniquely positioned to fill. Under the Liao dynasty they established, the Khitans built a hybrid civilization that combined nomadic military prowess with sophisticated administrative systems borrowed from Chinese models. By the mid-tenth century, the Liao had extracted tribute from the Song dynasty and controlled vast territories stretching from Manchuria to the northern Chinese plains.
Meanwhile, on the Korean peninsula, Wang Geon had unified the Later Three Kingdoms in 936 CE and founded the Goryeo dynasty — a name deliberately evoking the ancient kingdom of Goguryeo, whose northern territories had once extended deep into Manchuria. This historical claim would prove crucial. Goryeo was young, but it was ambitious. Its kings maintained a cautious relationship with both the Song and the Liao, navigating carefully between two giants. Yet geography made conflict almost inevitable: Goryeo shared a long northern border with territories the Liao considered their sphere of influence, and both kingdoms had competing claims over the lands and peoples of the Yalu River region.
The First Invasion and the Genius of Seo Hui (993 CE)
In 993 CE, the Khitan general Xiao Sunning led an enormous force across the northern border of Goryeo, demanding the kingdom’s submission. The Khitan position was militarily strong, and at court, some Goryeo officials counseled surrendering territory north of the Cheongcheon River to appease the invaders. It appeared Goryeo might capitulate without a decisive battle.
Then Seo Hui stepped forward. A senior Goryeo official, Seo Hui requested permission to negotiate directly with Xiao Sunning. What followed is one of the most celebrated acts of diplomatic brilliance in Korean history. Speaking as an equal rather than a suppliant, Seo Hui argued that Goryeo was the rightful successor state to Goguryeo — a kingdom that had once held sway over the very territories the Khitans now occupied. He further pointed out that Goryeo’s relationship with the Song was a matter of practical geography and that the Khitans themselves should wish for stable relations with a Goryeo that controlled its northern frontier.
Xiao Sunning was persuaded — or at least sufficiently impressed. The Khitan forces withdrew without a major battle. More remarkably, Goryeo emerged from the encounter not diminished but enlarged: the Liao acknowledged Goryeo’s right to occupy lands east of the Yalu River as far as the sea, territories previously held by the Jurchen people who were nominally under Liao suzerainty. In exchange, Goryeo formally severed its tribute relationship with Song China and opened diplomatic ties with Liao. It was a negotiated outcome that reads, to modern eyes, almost too good to be true — and in many ways it planted the seeds of future conflict, because neither side was fully satisfied with what had been agreed.
“Seo Hui’s negotiation stands as proof that words, deployed with the right combination of historical knowledge and nerves of steel, can accomplish what armies cannot.”
Why Did the Khitans Invade Again? Understanding the Second Invasion (1010 CE)
The peace that followed 993 was uneasy. Goryeo moved to consolidate its newly recognized northern territories, constructing a chain of fortresses along the Yalu frontier and effectively transforming the diplomatic gains of the first invasion into physical facts on the ground. At the same time, Goryeo never truly abandoned its cultural and commercial ties with Song China, despite formal recognition of Liao suzerainty. For the Khitans, this looked like bad faith.
Political upheaval within Goryeo gave the Liao an additional pretext. In 1009 CE, the Goryeo general Gang Jo launched a coup, assassinating King Mokjong and placing King Hyeonjong on the throne. The Liao emperor Shengzong declared that he was intervening to avenge the murdered king — a justification transparently thin but diplomatically useful. In 1010 CE, Shengzong himself led a massive army into Goryeo, reportedly numbering in the hundreds of thousands.
This second invasion was far more destructive than the first. The Khitan forces captured and burned Gaegyeong, the Goryeo capital, forcing King Hyeonjong to flee southward. Yet the Khitans found that military success did not translate into political control. Goryeo’s fortress cities, particularly in the northwest, continued to resist. Supply lines stretching deep into Korean territory became dangerously overextended. When Hyeonjong offered to personally travel to the Liao court to pay homage — a significant concession in the diplomatic language of the era — Shengzong accepted the offer and withdrew. The promise was never actually fulfilled, but it bought Goryeo precious time. The second invasion had demonstrated Liao military superiority and reduced Goryeo’s capital to ash, yet Goryeo as a political entity survived intact.
3 Reasons the Third Invasion Ended in Goryeo’s Triumph (1018–1019 CE)
1. Goryeo’s Fortress System Had Been Rebuilt and Reinforced
In the years between the second and third invasions, Goryeo undertook a systematic program of military reconstruction. New fortresses were built, garrisons were reinforced, and the kingdom’s northern commanders were given greater resources and authority. When the Khitan general Xiao Baye crossed the border in 1018 with a force reportedly around 100,000 strong, he found a very different landscape from the one that had yielded so easily eight years earlier. Key fortress cities refused to fall, and the Khitan vanguard was repeatedly slowed, harassed, and forced to bypass defended positions rather than reducing them.
2. Gang Gam-chan’s Strategic Genius at the Cheongcheon River
The Goryeo commander Gang Gam-chan — already in his seventies but apparently possessed of remarkable energy — prepared an ambush that would become legendary. As the Khitan army crossed the Cheongcheon River near Heunghwajin, Goryeo forces launched a coordinated assault that inflicted massive casualties on the invaders. Gang Gam-chan had reportedly ordered a dam or barrier constructed to temporarily hold back the river, then released the water to disrupt the Khitan crossing — though the exact details of this action are debated by historians. Regardless of the precise tactics, the battle at Heunghwajin seriously damaged Khitan momentum and morale.
3. The Decisive Battle of Gwiju (1019 CE)
Having pressed on toward Gaegyeong despite their losses, the Khitan forces eventually found themselves unable to take the capital and were compelled to retreat northward. It was on this retreat that the final catastrophe befell them. At Gwiju (near modern Kusong in North Korea), Gang Gam-chan’s forces intercepted the withdrawing Khitan army. The Battle of Gwiju became one of the most celebrated engagements in Korean military history. Khitan casualties were enormous — historical sources describe only a handful of thousands escaping out of the original invasion force, though such figures from premodern chronicles should be treated with caution. What is beyond dispute is that the Khitan army was shattered, and the Liao dynasty never again mounted a serious invasion of Goryeo.
The Aftermath: How the War Shaped Goryeo’s Identity
The effects of the Goryeo–Khitan War extended far beyond the battlefield. In immediate political terms, the two powers eventually arrived at a stable modus vivendi. Goryeo maintained nominal acknowledgment of Liao overlordship while preserving its internal autonomy and continuing to develop its own distinct civilization. The northern border, roughly at the Yalu River, became the recognized frontier of the Goryeo state — a boundary that in modified form persisted through subsequent centuries of Korean history.
Culturally and spiritually, the war left a profound mark. In the aftermath of the invasions, Goryeo undertook one of the most ambitious religious projects in East Asian history: the carving of the entire Buddhist Tripitaka — the complete scriptural canon — onto more than 80,000 wooden printing blocks, a project intended to invoke divine protection for the kingdom. This first Tripitaka Koreana was later destroyed during the Mongol invasions of the thirteenth century, but a second version, completed in 1251, survives at Haeinsa Temple and is today recognized as a UNESCO World Heritage treasure.
Gang Gam-chan, the architect of the victory at Gwiju, was celebrated as a national hero during his lifetime and has remained a beloved figure in Korean historical memory. Seo Hui’s diplomatic triumph of 993 is taught in Korean schools as a masterclass in negotiation and national self-assertion. Together, these two figures — the scholar-diplomat and the elderly general — represent something important about how Goryeo understood itself: as a civilization that could match its powerful neighbors not only with swords but with words and cultural confidence.
Continue Exploring
On Korea Through Time
- The Goryeo Dynasty: Buddhism, Celadon, and Korea’s Golden Age
- The Tripitaka Koreana: 80,000 Wooden Blocks of Faith at Haeinsa
- Gang Gam-chan and the Battle of Gwiju: Korea’s Greatest Military Victory