Language

Cao Cao's Campaign Against Hanzhong

0215-01-01 · Hanzhong

In the twentieth year of Jian'an (215), Cao Cao personally led a large army westward to campaign against Hanzhong, with the aim of accepting the surrender of Zhang Lu, leader of the Wudoumidao religious movement who had controlled Hanzhong for nearly thirty years. In the third month of that year Cao Cao's forces advanced from Wudou into territory inhabited by the Di people, and in the seventh month they reached Yangpingguan. Zhang Lu had initially intended to offer up his entire commandery in surrender, but his brother Zhang Wei refused, leading several tens of thousands of men to defend the pass. One of Cao Cao's advance units lost its way in the night and accidentally blundered into Zhang Wei's encampment; Zhang Wei's troops scattered in confusion, and Cao Cao pressed the advantage with a full assault, routing Zhang Wei. Zhang Lu subsequently surrendered as well. This operation encompasses three subsidiary events—the Battle of Yangpingguan, the Battle of Hanzhong, and Zhanglujiangcao. The event does not appear under a unified name in either the Romance of the San Guo or the San Guozhi, but drawing on both historical records and the novel's account, it is clear that Cao Cao thereby gained control of the Guanlong–Hanzhong corridor, laying the geographic and political foundation for the prolonged struggle over the Hanzhong basin that would follow between Shuhan and Caowei.


Cao Cao's Campaign Against Hanzhong

Scene

曹操征汉中(215年(建安二十年)):涉及 曹操、张鲁、张卫、张郃等;8 回/卷见于:史/演 ch.37、41、67、69、70、71;含子事件 张鲁降曹、汉中之战、阳平关之战。

Featured people: Cao Cao、Zhang Lu、Zhang Wei、Zhang He、Zhu Ling、Yang Ren


Geography

People

Phases of the battle

In depth

AI analysis

Background

The Hanzhong basin is bounded to the north by the Qin Mountains and commands the Daba Mountains to the south, forming the throat that links the Guan-Long region to the Ba-Shu region. At the end of the Eastern Han, Zhang Lu, the leader of Wudoumidao, held Hanzhong for nearly thirty years, appointing his own spiritual leaders and wine-offering officiants, governing the people effectively, and maintaining plentiful grain stores, making Hanzhong a strategic chip that neither Cao Cao nor Liu Bei could afford to ignore. In the spring of the twentieth year of Jian'an (215), after pacifying Guanzhong and absorbing Han Sui's remnant forces, Cao Cao set his sights on Hanzhong as his next objective. The timing was shaped by two layers of logic: first, the recently concluded Guanzhong campaign had left the supply routes and military nodes along the Guan-Long corridor relatively stable, providing a logistical springboard for the western expedition; second, Liu Bei had already seized Yizhou, and failing to promptly sever the possibility of Liu Bei expanding northward to absorb Hanzhong would leave Caowei chronically passive on the western front. The ownership of Hanzhong was the first critical pivot around which the Cao-Liu confrontation would expand from the Jingzhou axis to the western front.

Key Figures

Cao Cao personally commanded the front line of the western expedition, with Zhang He, Zhu Ling, and other generals seasoned from the Guanzhong campaign serving as the core strike force. Within Zhang Lu's camp a debate divided two paths: Zhang Lu leaned toward surrendering the entire commandery at an opportune moment in exchange for the continuation of his family and religious community; his younger brother Zhang Wei strongly advocated holding Yangpingguan, concentrating tens of thousands of men to make a stand in the terrain. Yang Ren and Yang Ang, as the garrison commanders under Zhang Wei at the pass, were the direct combatants in the Battle of Yangpingguan. Although Han Sui had already broken with Cao Cao after the Guanzhong campaign, the trajectory of his remnant forces also indirectly affected the strategic timing of Cao Cao's western expedition. On the surface this entire campaign was a contest between Cao Cao and Zhang Lu; in substance it was Cao's forces dismantling a highly organized religio-administrative compound entity.

Core Issues

Cao Cao's campaign against Hanzhong was not a straightforward military conquest — it was simultaneously addressing three tiers of political problems. The first was the absorption of a religious regime: Wudoumidao had already constituted a stable theocratic system in Hanzhong, and simple military suppression could not digest its underlying organizational capacity; a political channel had to be designed that would allow the Zhang Lu family to capitulate with dignity. The second was the trade-off over geographic depth: whether Cao Cao should also push south to take Shu after taking Hanzhong was the most consequential strategic option in this western expedition; historical sources record that Cao Cao hesitated in Hanzhong and ultimately did not follow the advice of advisors such as Sima Yi and Liu Ye to "press the victory and take Shu," leaving behind the famous retrospective reflection known as "winning Long yet eyeing Shu." The third was logistical sustainability: supplying troops through the Hanzhong-Guan-Long corridor was extremely arduous, and the long-term cost of garrisoning was high — this was a practical constraint that pushed Cao Cao toward "settling for Hanzhong" rather than "marching south against Shu."

Political Consequences

The outcome of the campaign was Zhang Lu's surrender with his entire household; Cao Cao enfeoffed him as General Who Pacifies the South and used measures such as marrying five sons to imperial princesses to incorporate the Wudoumidao leadership into the Caowei kinship network, stripping them of both their religious and local military foundations at once; Zhang Lu's remaining followers dispersed across the Guan-Long region and the Central Plains, transforming Wudoumidao from a local regime into a mobile religion. At the strategic level, Caowei's seizure of the Hanzhong basin meant that any Shuhan northern expedition would first have to cross the Qin Mountains and then contest Hanzhong, greatly raising the cost of a Shu advance toward Guanzhong. However, Cao Cao promptly withdrew the main force from Hanzhong, leaving only Xiahou Yuan to garrison it. This arrangement was exploited by Liu Bei in the Battle of Hanzhong three years later (218–219): Huang Zhong slew Xiahou Yuan on Dingjunshan, and Liu Bei subsequently took all of Hanzhong. The present "campaign to take Hanzhong" is therefore two-sided in its legacy: a short-term victory for Caowei, it planted in the medium term the seeds of a renewed Cao-Liu contest on the western front.

Counterfactual Analysis

Had Cao Cao in 215, with Hanzhong already secured, heeded Sima Yi and Liu Ye's counsel and marched south while Liu Bei's grip on Yizhou was still unstable, Shuhan would inevitably have failed to achieve the later tripartite balance with Wei and Wu. Conversely, had Cao Cao not personally campaigned against Hanzhong but merely sent a secondary force, Zhang Lu might have continued to bide his time and ultimately chosen to ally with Liu Bei, placing Hanzhong within Shuhan's orbit by another route, potentially achieving the geopolitical equilibrium on the western front several years ahead of schedule. Going one step further: had Cao Cao, after defeating Zhang Wei, immediately undertaken systematic land reclamation and settlement of the Hanzhong basin — turning it into a third stable military-farming zone alongside Guan-Long and the Central Plains — then at the time of the Battle of Hanzhong (218–219) Xiahou Yuan would not have been driven by logistical pressure to engage Liu Bei in a frontal clash, and Caowei's hold on Hanzhong might have lasted until Shuhan's extinction. All three counterfactuals converge on the same lesson: the real outcome of this western expedition turned not on a single night's confused fighting at the foot of Yangpingguan, but on whether the post-victory handling of geographic depth and organizational inheritance was done well.