Sima Yi's Liaodong campaign occurred in 238 AD during the Three Kingdoms period of Chinese history. Sima Yi, a general of the state of Cao Wei, led a force of 40,000 troops to attack the kingdom of Yan led by warlord Gongsun Yuan, whose clan had ruled independently from the central government for three generations in the northeastern territory of Liaodong (present-day eastern Liaoning). After a siege that lasted three months, Gongsun Yuan's headquarters fell to Sima Yi with assistance from Goguryeo (one of the Three Kingdoms of Korea), and many who served the Yan kingdom were massacred. In addition to eliminating Wei's rival in the northeast, the acquisition of Liaodong as a result of the successful campaign allowed Wei contact with the non-Han peoples of Manchuria, the Korean Peninsula, and the Japanese archipelago. On the other hand, the war and the subsequent centralisation policies lessened the Chinese grip on the territory, which permitted a number of non-Han states to form in the area in later centuries.
Background Liaodong Commandery of You Province, in modern Northeast China, was situated at the northeastern fringe of the Eastern Han Empire, surrounded by the Wuhuan and Xianbei nomads in the north and Goguryeo and Buyeo peoples in the east. Its capital was the city of Xiangping. In late 189, Gongsun Du, a native of Liaodong, was appointed as the Administrator of Liaodong (), beginning the Gongsun family's rule in the region. Taking advantage of his distance from central China, Gongsun Du stayed away from the chaos which accompanied the effective end of Han rule, expanded his territories to include the commanderies of Lelang and Xuantu, and eventually proclaimed himself as Marquis of Liaodong ().Gardiner (1972A), pp. 64-77 His son Gongsun Kang, who succeeded him in 204, created the Daifang Commandery and maintained the autonomy of Liaodong by aligning himself with the warlord Cao Cao.Gardiner (1972A), p. 91 Gongsun Kang died some time around the abdication of Emperor Xian of Han to Cao Pi, son of Cao Cao, and Gongsun Kang's brother Gongsun Gong became the new ruler of Liaodong. Gongsun Gong was described as incompetent and inept, and was soon overthrown and imprisoned by Gongsun Kang's second son Gongsun Yuan in 228.Gardiner (1972B), p. 147
Soon after Gongsun Yuan came to power in Liaodong, China was, for the most part, split into three: Cao Wei in the north, Shu Han in the southwest, and Eastern Wu in the southeast. Of these, Liaodong's chief concern was its immediate neighbour Cao Wei, which had once considered an invasion of Liaodong in response to Gongsun Yuan's coup. The Eastern Wu lord Sun Quan attempted to win Gongsun Yuan's allegiance to establish two fronts of attack against Cao Wei, and several embassies made their way from Wu to Liaodong by taking the difficult journey across the Yellow Sea. Cao Wei eventually got wind of the embassies and made one successful interception in Chengshan (), at the tip of the Shandong Peninsula, but Gongsun Yuan had already sided with Sun Quan.Gardiner (1972B), pp. 151-152 Upon the confirmation of Gongsun Yuan's goodwill, Sun Quan sent another embassy in 233 to give Gongsun Yuan the title of King of Yan () and various insignia to trade for warhorses. By then, however, Gongsun Yuan had changed his mind about allying himself with a distant state over the sea and making himself an enemy of a powerful neighbour. When the Wu embassy arrived, Gongsun Yuan seized the treasures, killed the leading ambassadors, and sent their heads and a portion of their goods to the Wei court to buy himself back to favour.Gardiner (1972B), p. 154 Some of the envoys from Wu escaped the carnage and found a potential ally to the east of Liaodong — the state of Goguryeo.
Goguryeo had been an enemy of the Gongsun clan since the time of Gongsun Du, especially after Gongsun Kang meddled with the succession after King Gogukcheon died. Although the Goguryeo pretender that Gongsun Kang supported was eventually defeated by Sansang of Goguryeo, Goguryeo had to move its capital to the Hwando mountain fortress in modern-day Ji'an, Jilin on the Yalu River to better protect itself from Gongsun Kang. Thus when the Wu ambassadors came to Goguryeo for refuge, the reigning King Dongcheon was happy to assist these new enemies of Liaodong. The king sent 25 men to escort the envoys back to Wu along with a tribute of sable and falcon skins, which encouraged Sun Quan to send an official mission to Goguryeo to further the two states' relations. Cao Wei did not want to see Wu regain a diplomatic foothold in the north, and established its own connections with Goguryeo through the Inspector of You Province () Wang Xiong ().Gardiner (1972B), p. 162 King Dongcheon presumably arrived at the same conclusion as Gongsun Yuan and switched his alignment from Wu to Wei — the Wu envoys to Goguryeo in 236 were executed and their heads sent to the new Inspector of You Province, Guanqiu Jian. By 238, Goguryeo had formally allied itself with Cao Wei against Gongsun Yuan.
Prelude Although Gongsun Yuan was nominally a vassal of Cao Wei, his brief flirtation with Wu and brazen derogatory comments about Wei earned him a reputation as unreliable. From Wei's point of view, although the Xianbei insurrection by Kebineng had been recently put down, Liaodong's position as a buffer zone against barbarian invasions needed to be clarified.Gardiner (1972B), p. 149 Therefore, it was clearly unacceptable that its leader, Gongsun Yuan, was of questionable loyalty. In 237, Guanqiu Jian presented a plan to invade Liaodong to the Wei imperial court and put his plan into action. With the troops of You Province as well as Wuhuan and Xianbei auxiliaries, Guanqiu Jian crossed the Liao River east into Gongsun Yuan's territory and clashed with his enemy in Liaosui (遼隧; near present-day Haicheng, Liaoning). There the Wei forces suffered a defeat, and were forced to retreat due to the floods caused by the summer monsoon season.Gardiner (1972B), p. 166
Having inflicted a disgrace on the imperial armies, Gongsun Yuan had gone too far to turn back. In a series of contradictory actions, Gongsun Yuan memorialised the Wei court in hope of getting a pardon while formally declaring independence by assuming the title King of Yan. He also assigned an era name for his reign, Shaohan (), meaning "Succeeding Han". This was problematic for his peace efforts for two reasons; first, proclaiming era names was a practice usually reserved for emperors, showing his intention to claim the imperial position, secondly, the era name itself implied that Wei's succession of the Han dynasty was somehow illegitimate. As king, he tried to entice the Xianbei into attacking Cao Wei by conferring the rank of chanyu to one of its chiefs, but the Xianbei had not recovered from the death of Kebineng as the chieftains were too preoccupied with internal disputes to launch a large-scale attack on Wei.Gardiner (1972B), p. 167
In 238, the Wei court summoned the Grand Commandant () Sima Yi for another campaign against Gongsun Yuan. Previously, Sima Yi had been tasked with defending Wei's western borders from Shu Han's Northern Expeditions led by the Shu chancellor Zhuge Liang, so when the latter died in 234, the government of Wei could afford sending Sima Yi to another frontier. In a court debate prior to the campaign, the Wei emperor Cao Rui decided that Sima Yi should lead 40,000 men for the invasion of Liaodong. Some counsellors thought that was too many, but Cao Rui overruled them, saying: "In this expedition of 4,000 li, mobile troops must be employed, and we must exert our utmost. We should not mind the expense at all."Fang, p. 569 The emperor then asked Sima Yi for his assessment on Gongsun Yuan's possible reactions and how long the campaign should take, Sima Yi responded as thus:
When Sima Yi set out from the Wei capital Luoyang, Cao Rui personally saw him off at Luoyang's Ximing Gate (), where he ordered Sima Yi's brother Sima Fu and son Sima Shi, as well as other officials to attend the ceremony. Sima Yi, leading 40,000 infantry and cavalry, was accompanied by sub-commanders such as Niu Jin and Hu Zun ().Fang, p. 585 note 1(景初二年,帥牛金、胡遵等步騎四萬,發自京都。車駕送出西明門,詔弟孚、子師送過溫,賜以穀帛牛酒,勑郡守典農以下皆往會焉。) Jin Shu vol. 1. He would later be joined by Guanqiu Jian's forces in You Province,Chen, 28.5 which included the Xianbei auxiliary led by Mohuba, ancestor of the Murong clan.Gardiner (1972B), p. 169
Having heard of the new preparations made against him, Gongsun Yuan dispatched an envoy to the Wu court to apologise for his betrayal in 233 and begged for help from Sun Quan. At first, Sun Quan was ready to kill the messenger, but was persuaded by Yang Dao () to make a display of force and possibly gain an advantage if Sima Yi and Gongsun Yuan became deadlocked in war. Cao Rui became concerned about the Wu reinforcements, but the adviser Jiang Ji read through Sun Quan's intentions and cautioned Cao Rui that while Sun Quan would not risk a deep invasion, the Wu fleet would make a shallow incursion into Liaodong if Sima Yi did not defeat Gongsun Yuan quickly enough.Fang, pp. 570-571
The campaign The Wei army led by Sima Yi reached the banks of the Liao River by June 238. Gongsun Yuan responded by sending Bei Yan () and Yang Zuo () with the main Liaodong force to set camp at Liaosui, the site of Guanqiu Jian's defeat. There, the Liaodong encampment stretched some 20 li walled from north to south.Fang, pp. 572, 591 note 12.2. Although the Book of Jin described the encampment as stretching 60 to 70 li, Sima Guang followed the Records of the Three Kingdoms description since he considered 70 li too long for an encampment.(文懿果遣步騎數萬,阻遼隧,堅壁而守,南北六七十里,以距帝。) Jin Shu vol. 1. The Wei generals wanted to attack Liaosui, but Sima Yi reasoned that attacking the encampment would only wear out the troops; on the other hand, since the bulk of the Liaodong army was at Liaosui, Gongsun Yuan's headquarters at Xiangping would be comparatively empty and the Wei armies could take it with ease. Thus Sima Yi sent Hu Zun to make a sortie to the southeast, planting flags and banners as if the main thrust of the Wei army was in that direction.Fang, p. 572 Bei Yan and his men hastened to the south, where Hu Zun, having lured his enemy out, crossed the river and broke through Bei Yan's line. Meanwhile, Sima Yi secretly led the main Wei army across the Liao River to the north. After he made the crossing, he burned the bridges and boats, made a long barricade along the river, then headed toward Xiangping.Fang, p. 592 note 13.4 Realising the feint, Bei Yan and his men hastily withdrew their troops during the night and headed north to intercept Sima Yi's army. Bei Yan caught up with Sima Yi at Mount Shou (), a mountain west of Xiangping, where he was ordered to fight to the death by Gongsun Yuan. Sima Yi achieved a great victory there, and proceeded to lay siege to Xiangping.(帝盛兵多張旗幟出其南,賊盡銳赴之。乃泛舟潛濟以出其北,與賊營相逼,沉舟焚梁,傍遼水作長圍,棄賊而向襄平。諸將言曰:「不攻賊而作圍,非所以示衆也。」帝曰:「賊堅營高壘,欲以老吾兵也。攻之,正入其計, ... 古人曰,敵雖高壘,不得不與我戰者,攻其所必救也。賊大衆在此,則巢窟虛矣。我直指襄平,必人懷內懼,懼而求戰,破之必矣。」遂整陣而過。賊見兵出其後,果邀之。帝謂諸將曰:「所以不攻其營,正欲致此,不可失也。」乃縱兵逆擊,大破之,三戰皆捷。賊保襄平,進軍圍之。) Jin Shu vol. 1.