Cao Cao (; ;  – 15 March 220), courtesy name Mengde, was a Chinese statesman, warlord and poet who rose to power towards the end of the Eastern Han dynasty ( 184–220) and became the effective head of the Han central government during that period. He laid the foundation for what was to become the state of Cao Wei (220–265), established by his son and successor Cao Pi, who ended the Eastern Han dynasty and inaugurated the Three Kingdoms period (220–280). Beginning in his own lifetime, a corpus of legends developed around Cao Cao which built upon his talent, his cruelty, and his perceived eccentricities.

Cao Cao began his career as an official under the Han government and held various appointments, including that of a district security chief in the capital and the chancellor of a principality. He rose to prominence in the 190s during which he recruited his own followers, formed his own army, and set up a base in Yan Province (covering parts of present-day Henan and Shandong). In 196, he received Emperor Xian, the figurehead Han sovereign who was previously held hostage by other warlords such as Dong Zhuo, Li Jue, and Guo Si. After he established the new imperial capital in Xuchang, Emperor Xian and the central government came under his direct control, but he still paid nominal allegiance to the emperor. Throughout the 190s, Cao Cao actively waged wars in central China against rival warlords such as Lü Bu, Yuan Shu, and Zhang Xiu, eliminating all of them. Following his triumph over the warlord Yuan Shao at the Battle of Guandu in 200, Cao Cao launched a series of campaigns against Yuan Shao's sons and allies over the following seven years, defeated them, and unified much of northern China under his control. In 208, shortly after Emperor Xian appointed him as Imperial Chancellor, he embarked on an expedition to gain a foothold in southern China, but was defeated by the allied forces of the warlords Sun Quan, Liu Bei, and Liu Qi at the decisive Battle of Red Cliffs.

His subsequent attempts over the following years to annex the lands south of the Yangtze River never proved successful. In 211, he defeated a coalition of western warlords led by Ma Chao and Han Sui at the Battle of Tong Pass. Five years later, he seized Hanzhong from the warlord Zhang Lu but lost it to Liu Bei by 219. In the meantime, he also received many honours from Emperor Xian. In 213, he was created Duke of Wei and granted a fief covering parts of present-day Hebei and Henan. In 216, he was elevated to the status of a vassal king under the title "King of Wei" and awarded numerous ceremonial privileges, of which some used to be reserved exclusively for emperors. Cao Cao died in Luoyang in March 220 and was succeeded by his son Cao Pi, who accepted the abdication of Emperor Xian in November 220 and established the state of Cao Wei to replace the Eastern Han dynasty— an event commonly seen as a usurpation. This marked the transition from the Eastern Han dynasty to the Six Dynasties period. After taking the throne, Cao Pi granted his father the posthumous title "Emperor Wu" ("Martial Emperor") and the temple name "Taizu" ("Grand Ancestor").

Apart from being lauded as a brilliant political and military leader, Cao Cao is celebrated for his poems, which were characteristic of the Jian'an style of Chinese poetry. Opinions of him have remained divided from as early as the Jin dynasty (265–420) – the period immediately after the Three Kingdoms era – to the present. There were some who praised him for his achievements in poetry and his career, but there were also others who condemned him for his cruelty, cunning, and allegedly traitorous ways. In traditional Chinese culture, Cao Cao is stereotypically portrayed as a sly, power-hungry, and treacherous tyrant who serves as a nemesis to Liu Bei, often depicted in contraposition as a hero trying to revive the declining Han dynasty. During the Ming dynasty (1368–1644), when Luo Guanzhong wrote the epic novel Romance of the Three Kingdoms, which dramatises the historical events before and during the Three Kingdoms period, he not only cast Cao Cao as a primary antagonist in the story but also introduced, fictionalised, and exaggerated certain events to enhance Cao Cao's "villainous" image.

Historical sources on Cao Cao's life
The authoritative historical source on Cao Cao's life is his official biography in the Records of the Three Kingdoms (Sanguozhi), which was written by Chen Shou in the third century. His sources for his work on the Wei portion of his book (; Wei Zhi) included the Dongguan Ji (; now lost), the Book of Wei, and possibly other records. Chen Shou worked in the history bureau and had access to a variety of sources, but followed the traditional method of incorporating information into a single synthesis without citing his sources, so it is not clear how broad a pool of documentation he drew upon.

In the fifth century, Pei Songzhi annotated the Sanguozhi by incorporating information from other sources to Chen Shou's original work and adding his personal commentary, as well as commentary from other historians.

One of the major sources for information on Cao Cao's life employed by Pei Songzhi was the official history of the Wei dynasty, the Book of Wei (魏書), largely composed during the Wei dynasty itself by Wang Chen, Xun Yi, and Ruan Ji. It was completed by Wang Chen and presented to the court during the opening years of the succeeding Western Jin dynasty. This work is understandably typically very favourable to Cao Cao as the founding figure of the dynasty under which the initial compilation was performed.

As a counterpoint, another significant source for Cao Cao's life as cited by Pei Songzhi was the Cao Man zhuan (), an anonymous collection of anecdotes said to have been compiled by a person from Eastern Wu, a rival kingdom to Cao Cao's own. This work is overall very hostile to Cao Cao, depicting him as cruel and untrustworthy, although not every anecdote is negative. Cao Man zhuan has been characterised as "hostile propaganda", and certain contents as "slanderous". Such a work cannot be considered a reliable source, but informs an exaggerated perspective contraposed to the glowing portrait painted by his own dynasty's official history.

For much of his career, Cao Cao hosted and controlled the final Han emperor, whose doings and correspondence it was standard to record. Especially useful for noting things like official appointments, three titles of this type were used by Pei Songzhi to add detail to Chen Shou's account: Xiandi Ji (; Records of Emperor Xian) compiled by Liu Ai (劉艾), Xiandi Qiju zhu (; Notes on Emperor Xian's Daily Life), and Shanyang Gong zaiji (; Records of the Duke of Shanyang [Emperor Xian's post-usurpation title]) by Yue Zi ().

Other early sources for Pei Songzhi included Yu Huan's privately composed histories Dianlüe (; Authoritative Account) and Weilüe (魏略; Brief History of Wei), written prior to Chen Shou's own work; and Sima Biao's Jiuzhou Chunqiu (九州春秋; Annals of the Nine Provinces), also from the 3rd century.

Later sources included works by the moralistic historian Sun Sheng, most saliently his Wei Shi Chunqiu (魏氏春秋; Chronicles of the Ruling Family of Wei), but also his more critical Yitong Ping (; Commentary on Similarities and Differences) and Yitong Zayu (; Miscellaneous Words on Similarities and Differences), which may have been parts of the same work. Although Pei Songzhi sometimes pointed out flaws in Sun Sheng's methods, he often cite him as an authority. Other Jin dynasty historians he gave less credence to, while still including parallel passages from their work, such as Jiangbiao zhuan (江表傳), by Yu Pu (虞溥), and Wei Jin Shiyu (; Tales of the Worlds of Wei and Jin) by Guo Song (郭頒), a work which Pei Songzhi denigrated in very strident terms.

The official standard history of the Eastern Han dynasty, the Book of the Later Han by Fan Ye, was not available to Pei Songzhi. He and Fan Ye were contemporaries, but Fan Ye did not begin work on his history until a few years after Pei Songzhi completed his. Book of the Later Han does not contain a full biography of Cao Cao, but records of him and his actions can be found scattered in disparate locations in the book.

Some of Cao Cao's own writing – both literary and in the form of government edicts – has been preserved in later collectanea. His commentary on The Art of War is extant, but offers little insight into his life.

Family background and early life (155–184)

Cao Cao's ancestral home was in Qiao County (), Pei State (沛國), which is present-day Bozhou, Anhui. He was purportedly a descendant of Cao Shen, a statesman of the early Western Han dynasty (206 BCE – 9 CE). His father, Cao Song, served as the Grand Commandant during the reign of Emperor Ling (), buying his way into high government office for an exorbitant sum, and serving less than half a year. Cao Song was a foster son of Cao Teng, a eunuch who served as a Central Regular Attendant and the Empress's Chamberlain under Emperor Huan (), and held the peerage of Marquis of Fei Village ().

In his youth, Cao Cao was known to be perceptive and manipulative. He liked to hunt, idle, roam about freely, and play vigilante so he was not as highly regarded compared to his more studious peers. From the time Cao Cao was fifteen until he turned thirty, widespread epidemic diseases ravaged China on average one out of every three years.

Despite Cao Cao's loafing ways and unimpressive behaviour, there were two persons – Qiao Xuan and He Yong – who recognised his potential and extraordinary talents. Upon visiting the famous commentator and character evaluator Xu Shao, Cao Cao was assessed as being "a treacherous villain in times of peace, and a hero in times of chaos". Another source recorded that Xu Shao told Cao Cao, "You will be a capable minister in times of peace, and a jianxiong in times of chaos."

Early career (184–189)

As the Commandant of the North District in Luoyang

Cao Cao started his career as a civil service cadet after he was nominated as a xiaolian around the age of 19. He was later appointed as the Commandant of the North District () of the imperial capital Luoyang and put in charge of maintaining security in that area. Later that year, he was transferred to the position of Prefect of Dunqiu County (; southwest of present-day Qingfeng County, Henan). This represented a horizontal career move to a position of greater authority in a smaller jurisdiction with less political importance.

As a Consultant
Cao Cao's cousin married Song Qi (宋奇), a relative of Empress Song. In 178, when Emperor Ling deposed Empress Song in the aftermath of a political scandal, the empress's family and relatives got into trouble as well. Because of his relationship with Song Qi, Cao Cao was implicated in the scandal and dismissed from office. However, he was pardoned later and recalled to Luoyang to serve as a Consultant () under the Minister of the Household because of his expertise in history. When the general Dou Wu and senior minister Chen Fan plotted to get rid of the eunuch faction, their plan failed and they lost their lives. Cao Cao wrote a memorial to Emperor Ling to defend Dou Wu and Chen Fan, and point out that the imperial court was full of corrupt officials and that advice from loyal officials had been ignored. Emperor Ling did not listen to him.

Emperor Ling later issued a decree, ordering the Three Ducal Ministers to report and dismiss commandery and county officials who performed badly in office. However, the Ministers protected the under-performing officials and accepted bribes, resulting in a situation where evildoers were not punished while the poor and weak were oppressed. Cao Cao felt frustrated when he saw this. When natural disasters occurred, Cao Cao was summoned to the imperial court to discuss the problems in the administration. During this time, he wrote another memorial to Emperor Ling, accusing the Three Ducal Ministers of siding with the nobles and elites, and helping them to cover up their misdeeds. Emperor Ling was stunned after reading the memorial. He admonished the Ministers for their conduct, reinstated the officials who had been wrongly dismissed, and appointed them as Consultants. However, corruption worsened over time and became rampant throughout all levels of the government. Cao Cao stopped speaking up when he realised that his efforts to restore order were futile.

As the Chancellor of Jinan
In 184, when the Yellow Turban Rebellion broke out, the Han central government commissioned Cao Cao as a Cavalry Commandant () and ordered him to lead imperial forces to attack the rebels in Yingchuan Commandery (潁川郡; around present-day Xuchang, Henan). He was later appointed as the Chancellor of Jinan State (濟南國; around present-day Jinan, Shandong), a principality in Qing Province which had over 10 counties under its jurisdiction. Many senior officials in Jinan State had connections with the nobles and engaged in corrupt practices, so Cao Cao proposed to the imperial court to dismiss about 80 percent of them. As Cao Cao had a reputation for being a strict law enforcer, when news of his arrival reached these corrupt officials, they were so fearful that they fled to nearby commanderies. Cao Cao governed Jinan State well and maintained peace in the area.

In the early days of the Western Han, nearly four hundred years previously, Liu Zhang (劉章), the Prince of Chengyang State (城陽國; around present-day Ju County, Shandong), felt that he had made great contributions to the Han Empire so he built temples in his principality for the people to worship him. Many other commanderies in Qing Province also followed this practice. In Jinan State alone, there were over 600 such temples. Wealthy merchants could even borrow the servants and personal carriages of officials for their own leisure activities. This resulted in greater inequality between the rich and poor. The senior officials did not dare to interfere. When Cao Cao assumed office in Jinan State, he destroyed all the temples and banned such idolatrous practices. He upheld the laws sternly and eliminated unorthodox customs and cult-like activities.

Brief resignation
After serving as the Chancellor of Jinan State for a brief period of time, Cao Cao was reassigned to be the Administrator of Dong Commandery (東郡; around present-day Puyang County, Henan), but he declined the appointment on the grounds of poor health, and resigned and went home. The Book of Wei recorded that around the time, corruption had deteriorated to the point where influential officials dominated the imperial court and blatantly abused their powers. Cao Cao was unable to stop them and feared that he might bring trouble to his family because he had been interfering with their activities, so he requested to serve in the Imperial Guards. His request was rejected and he was appointed as a Consultant () instead. He then claimed that he was ill and resigned and went home. He built a house outside the city and lived there, spending his time reading in spring and summer, and going on hunting excursions in autumn and winter.

Wang Fen (王芬), the Inspector of Ji Province, along with Xu You, Zhou Jing (周旌) and others, plotted to overthrow Emperor Ling and replace him with the Marquis of Hefei (). They contacted Cao Cao and asked him to join them but he refused. Wang Fen's plan ultimately failed.

Cao Cao was appointed as Colonel Who Arranges the Army () and summoned back to Luoyang to serve in the Army of the Western Garden when Bian Zhang, Han Sui and others started a rebellion in Liang Province.

Campaign against Dong Zhuo (189–191)

Background
Emperor Ling died in 189 and was succeeded by his son, Liu Bian, who is historically known as Emperor Shao. As Emperor Shao was still young, his mother Empress Dowager He and maternal uncle He Jin ruled as regents on his behalf. He Jin plotted with Yuan Shao and others to eliminate the eunuch faction, and shared their plan with his sister. When the empress dowager was reluctant to kill the eunuchs, He Jin thought of summoning generals stationed outside Luoyang to lead their troops into the imperial capital to put pressure on the empress dowager. Cao Cao strongly objected to He Jin's idea as he believed that the best way to deal with the eunuchs was to eliminate their leaders. He also argued that summoning external forces into Luoyang would only increase the risk of their plan being leaked out. He Jin – the highest ranking officer in the government – understandably ignored him.

As Cao Cao predicted, the eunuchs got wind of He Jin's plot and assassinated him before the generals and their troops arrived. Yuan Shao and He Jin's followers led their forces to storm the imperial palace and slaughter the eunuchs in revenge. Emperor Shao and his younger half-brother, Liu Xie, escaped during the chaos. They were eventually found and brought back to the palace by Dong Zhuo, who took advantage of the power vacuum to seize control of the central government. Later that year, Dong Zhuo deposed Emperor Shao and replaced him with Liu Xie, who is historically known as Emperor Xian. The deposed Emperor Shao became the Prince of Hongnong.

Dong Zhuo wanted to appoint Cao Cao as a Colonel of Valiant Cavalry () and recruit him as an adviser. However, Cao Cao adopted a fake identity, escaped from Luoyang, and returned to his home in Chenliu Commandery (陳留郡; around present-day Kaifeng, Henan). He had two encounters along the way. The first was with the family of Lü Boshe, an old acquaintance. The second incident occurred when he passed by Zhongmu County, where a village chief suspected that he was a fugitive and arrested him. However, another official recognised Cao Cao and believed he could act as a positive influence, so he released Cao Cao.

The campaign

Dong Zhuo murdered the Prince of Hongnong and Empress Dowager He later. When Cao Cao returned to Chenliu Commandery, he spent his family fortune on raising an army to eliminate Dong Zhuo. In the winter of 189, Cao Cao assembled his forces in Jiwu County (; southwest of present-day Ningling County, Henan) and declared war on Dong Zhuo.

In early 190, several regional officials and warlords formed a coalition army numbering some tens of thousands, and launched a punitive campaign against Dong Zhuo. They declared that their mission was to free Emperor Xian and the central government from Dong Zhuo's control. Yuan Shao was elected as the coalition chief while Cao Cao served as acting General of Uplifting Martial Might (). The coalition scored some initial victories against Dong Zhuo's forces and reached Luoyang within months. Dong Zhuo, alarmed by his losses, ordered his troops to forcefully relocate Luoyang's residents to Chang'an and burn down the imperial capital, leaving behind nothing for the coalition.

While Dong Zhuo was retreating to Chang'an, Cao Cao led his own army to pursue the enemy, but was defeated by Xu Rong, a general under Dong Zhuo, at the Battle of Xingyang. This was the first military action Cao Cao commanded, and he barely escaped alive, with help from his cousin Cao Hong. He returned to the coalition base in Suanzao County (; southwest of present-day Yanjin County, Henan) and was disgusted to see that the other coalition members were making merry instead of thinking how to make progress. He presented his plan on how to continue the war against Dong Zhuo and chided them for their lacklustre attitudes towards their initial goals. They ignored him.

Aftermath
As Cao Cao had few troops left with him after the Battle of Xingyang, he travelled to Yang Province with Xiahou Dun to recruit soldiers. Chen Wen (陳溫), the Inspector of Yang Province, and Zhou Xin, the Administrator of Danyang Commandery (丹楊郡), gave him over 4,000 troops. On the way back, when they passed by Longkang County (; in present-day Huaiyuan County, Anhui), many soldiers started a mutiny and set fire to Cao Cao's tent at night, but he was able to escape. When Cao Cao reached Zhi (; west of present-day Suzhou, Anhui) and Jianping (; southwest of present-day Xiayi County, Henan) counties later, he managed to regroup over 1,000 soldiers and lead them to a garrison in Henei Commandery (河內郡; around present-day Wuzhi County, Henan).

Yuan Shao and Han Fu thought of installing Liu Yu, the Governor of You Province, on the throne to replace Emperor Xian. When they sought Cao Cao's opinion, Cao Cao refused to support them and reaffirmed his allegiance to Emperor Xian. Yuan Shao's plan turned out to be unsuccessful because Liu Yu himself did not want to be emperor.

Yuan Shao once invited Cao Cao to sit beside him and showed him a jade seal, indicating his imperial ambition, and a tacit request for Cao Cao's support. Finding this despicable, Cao Cao laughed at him.

Military exploits in central China (191–199)

Pacifying Yan Province

Between 191 and 192, Yuan Shao appointed Cao Cao Administrator of Dong Commandery (東郡; around present-day Puyang, Henan) in Yan Province. This position allowed him to exact taxes and conscript soldiers. His first territorial command in that respect marks the beginning of his career as a warlord. During this time, he defeated the Heishan bandits, who were causing trouble in the region, and some southern Xiongnu forces led by Yufuluo in Neihuang County.

Around the time, huge numbers of remnants of the Yellow Turban rebels swarmed into Yan Province from Qingzhou. Liu Dai, the Governor of Yan Province, was killed in a battle against the rebels. Bao Xin, Chen Gong and others invited Cao Cao to replace Liu Dai as the Governor of Yan Province. Cao Cao defeated the rebels in battle and received the surrender of over 300,000 rebels and hundreds of thousands of civilians (the rebels' family members). From among them, he recruited the more battle-hardened ones to form a new military unit known as the Qingzhou Corps ().

Involvement in the conflict between Yuan Shao and Yuan Shu

Yuan Shu had disagreements with Yuan Shao so he contacted Gongsun Zan, Yuan Shao's rival in northern China, for help in dealing with Yuan Shao. Gongsun Zan instructed Liu Bei, Shan Jing () and Tao Qian to garrison at Gaotang, Pingyuan and Fagan (; east of present-day Guan County, Shandong) counties respectively to put pressure on Yuan Shao. Yuan Shao allied with Cao Cao and defeated all the opposing forces. In the spring of 193, Cao Cao defeated Yuan Shu at the Battle of Fengqiu and returned to Dingtao County by summer.

Conflict with Tao Qian

Between 193 and 194, Cao Cao came into conflict with Tao Qian, the Governor of Xu Province, and attacked Xu Province three times. The first attack took place in the autumn of 193, when Cao Cao attacked Tao Qian after the latter supported Que Xuan (闕宣), who had committed treason by declaring himself emperor. The second and third invasions were triggered by the murder of Cao Cao's father, Cao Song, in Xu Province, which occurred when Cao Song was en route to Qiao County (; present-day Bozhou, Anhui) after his retirement. Although Tao Qian's culpability in the murder was questionable, Cao Cao nonetheless held him responsible for his father's death. During the invasions, Cao Cao conquered several territories in Xu Province and massacred thousands of civilians. Cao Cao's assault on Xu Province was so brutal that after one massacre the corpses of his victims stoppered up the nearby Si river (). His army tore down villages in its wake, ensuring refugees could not return, and ate all the chickens and dogs. Cao Cao only turned back when he received news that his base in Yan Province had fallen to Lü Bu.

War with Lü Bu

In 194, Cao Cao's subordinates Zhang Miao, Chen Gong and others rebelled against him in Yan Province and defected to a rival warlord, Lü Bu. Many commanderies and counties in Yan Province responded to Lü Bu's call and defected to his side except for a few. Cao Cao aborted his campaign in Xu Province and returned to attack Lü Bu. In one battle at Puyang County, he fell into an ambush and suffered some burns but managed to survive and escape. Cao Cao and Lü Bu were locked in a stalemate at Puyang County for over 100 days until Lü Bu left the county when his supplies ran out due to natural disasters such as locust plagues and droughts. Grain supplies were so limited that Cao Cao strongly considered an offer to serve under Yuan Shao, but was persuaded against it and ceased recruitment instead. He sent his army to collect food, but his numerically inferior forces were able to turn back an attack by Lü Bu that summer using deceptive tactics.

From 194 to late 195, Cao Cao attacked the territories in Yan Province and managed to retake them from Lü Bu. Lü Bu fled east to Xu Province and took refuge under Liu Bei, who had succeeded Tao Qian as the Governor of Xu Province earlier in 194. In the winter of 195, the central government officially designated Cao Cao as the Governor of Yan Province.

In 196, Lü Bu turned against his host and seized control of Xu Province from Liu Bei, but still allowed Liu Bei to remain in Xiaopei (; present-day Pei County, Jiangsu). Although he agreed to an alliance with Yuan Shu earlier, he broke his promise and severed ties with Yuan Shu when the latter declared himself emperor in early 197. Throughout 197, Lü Bu joined Cao Cao and others in attacking Yuan Shu, who had become a public enemy because of his treasonous actions. However, in 198, Lü Bu sided with Yuan Shu again and attacked Liu Bei, who lost and fled to join Cao Cao. In the winter of 198, Cao Cao and Liu Bei combined forces to attack Lü Bu and defeated him at the Battle of Xiapi. Lü Bu was captured and executed after his defeat. Cao Cao also pacified the eastern parts of Xu and Qing provinces along the coast.

Receiving Emperor Xian
Emperor Xian had been held hostage in Chang'an by Li Jue, Guo Si and other former followers of Dong Zhuo. Around 195, when internal conflict broke out between Li Jue and Guo Si, Emperor Xian escaped from Chang'an and after a harrowing journey returned to the ruins of Luoyang, which Dong Zhuo had ordered to be destroyed by fire in 190 when moving the capital to Chang'an. In Luoyang, Emperor Xian came under the protection of Dong Cheng, former bandit Yang Feng, and other petty strongmen who have been characterised as "ragtag gangsters". The emperor sought refuge under Yuan Shao, but was rebuffed. In February or March 196, acting on the advice of Xun Yu and Cheng Yu, Cao Cao sent Cao Hong west to fetch Emperor Xian but was blocked by Dong Cheng and Yuan Shu's subordinate Chang Nu (). Between March and April 196, Cao Cao attacked and defeated Yellow Turban rebel remnants in Runan (汝南) and Yingchuan (潁川) commanderies and was appointed General Who Establishes Virtue (). In July or August 196, Cao Cao was promoted to General Who Garrisons the East () and enfeoffed as the Marquis of Fei Village () – the peerage previously held by his adoptive grandfather Cao Teng.

Sometime between August and September 196, Cao Cao led his forces to the ruins of Luoyang and received Emperor Xian. The emperor granted Cao Cao a ceremonial axe and appointed him Manager of the Affairs of the Imperial Secretariat (錄尚書事) and Colonel-Director of Retainers (司隷校尉). As Luoyang was in bad shape, Dong Zhao and others advised Cao Cao to move the imperial capital to Xu (; present-day Xuchang, Henan). So, in October or early November 196, Cao Cao and his forces escorted Emperor Xian to Xuchang, which became the new imperial capital. Cao Cao had himself appointed General-in-Chief (大將軍) and promoted from a village marquis to a county marquis under the title "Marquis of Wuping" (), later characterised as ten thousand households. Since Dong Zhuo moved the capital from Luoyang to Chang'an in 190, the imperial court had been in a state of disorder. However, after Cao Cao received Emperor Xian and established the new imperial capital in Xuchang, order was restored, although Cao Cao did have the emperor's confidante Zhao Yan (趙彥) killed for secretively keeping the emperor updated on the great affairs of state.

Cao Cao sent an imperial decree to Yuan Shao in Emperor Xian's name to appoint him as Grand Commandant (太尉). Yuan Shao was unhappy because Grand Commandant ranked below Cao Cao's position, General-in-Chief, so he rejected the appointment. When Cao Cao heard about it, he gave up his position as General-in-Chief and offered it to Yuan Shao. Emperor Xian reappointed Cao Cao as Minister of Works () and acting General of Chariots and Cavalry (車騎將軍). Struck by the difficulties Yuan Shao and Yuan Shu had faced in supplying their armies, as well as his own struggles with food supply in recent years, Cao Cao followed Zao Zhi (棗祗) and Han Hao's suggestion to implement the tuntian system of agriculture to produce a sustainable supply of grain for his growing army. The tuntian agricultural colonies gave Cao Cao an advantage over his adversaries, allowing him to resettle internally displaced refugees, redevelop abandoned arable lands, shorten his supply lines, reduce the amount of defensive assets tasked to defend farms and granaries, and increase the area and productivity of lands held directly by the state.

Battles with Zhang Xiu

In early 197, Cao Cao led his forces to Wancheng (; present-day Wancheng District, Nanyang, Henan) to attack a rival warlord, Zhang Xiu. Zhang Xiu initially surrendered without a fight, but due to ill treatment changed his mind and attacked Cao Cao and caught him off guard. Cao Cao lost his eldest son Cao Ang, nephew Cao Anmin (曹安民) and close bodyguard Dian Wei in the battle. He returned to Xuchang after his defeat, but attacked Zhang Xiu again later that year and pacified Huyang (; southwest of present-day Tanghe County, Henan) and Wuyin (; southeast of present-day Sheqi County, Henan) counties. In early 198, he led another campaign against Zhang Xiu and besieged him in Rangcheng (; present-day Dengzhou, Henan) but withdrew his forces about two months later. Before retreating back to Xuchang, he set up an ambush and defeated Zhang Xiu's pursuing forces. In late 199, acting on Jia Xu's advice, Zhang Xiu voluntarily surrendered to Cao Cao, who accepted his surrender.

Campaign against Yuan Shu

In early 197, Yuan Shu declared himself emperor in Shouchun (; present-day Shou County, Anhui) – an act regarded as treason against Emperor Xian. He soon came under attack by Cao Cao and various forces, including his former ally Lü Bu. In the autumn of 197, Cao Cao defeated Yuan Shu in battle, captured several of his officers, and had them executed. By 199, some months after Lü Bu's defeat at the Battle of Xiapi, Yuan Shu, who was already in dire straits, wanted to abandon his lands in the Huainan region and head north to join Yuan Shao. Cao Cao sent Liu Bei and Zhu Ling to lead forces to intercept and block Yuan Shu in Xu Province. Yuan Shu died of illness while under siege by Liu Bei and Zhu Ling.

War with Yuan Shao (199–202)

Background
While Cao Cao was waging wars throughout central China in the 190s, Yuan Shao defeated his rival Gongsun Zan at the Battle of Yijing in 199, after which he controlled four provinces in northern China (Ji, Bing, Qing and You) and gained command of thousands of troops. A power struggle between Cao Cao and Yuan Shao became inevitable by early 199. In the autumn of 199, Cao Cao dispatched troops to Liyang County (; present-day Xun County, Henan) and sent Zang Ba and others to capture some territories in Qing Province while leaving Yu Jin to guard the southern bank of the Yellow River. In winter, he mobilised his forces and deployed them at Guandu (; present-day Guandu Town, Zhongmu County, Henan).

Campaign against Liu Bei in Xu Province
Around this time, Cheng Yu and Guo Jia had warned Cao Cao against allowing Liu Bei to leave Xuchang but it was too late because Cao Cao had already sent Liu Bei to intercept and block Yuan Shu. Earlier, when he was still in Xuchang, Liu Bei had secretly joined a plot initiated by Dong Cheng and others to get rid of Cao Cao. After leaving Xuchang, Liu Bei headed to Xu Province, killed the provincial inspector Che Zhou (車冑), and seized control of Xu Province. Cao Cao sent Liu Dai () and Wang Zhong to attack Liu Bei but they were defeated.

In February 200, Cao Cao got wind of Dong Cheng's plot and had all the conspirators arrested and executed. He then led a campaign to retake Xu Province from Liu Bei, defeated him, and captured his family. Liu Bei's general Guan Yu, who was guarding Xu Province's capital, Xiapi (; present-day Pizhou, Jiangsu), surrendered and temporarily served Cao Cao. Liu Bei fled north to join Yuan Shao after his defeat. Some of Cao Cao's subordinates initially expressed worries that Yuan Shao might attack them while Cao Cao was away in Xu Province, but, as Cao Cao accurately predicted, Yuan Shao did not make any advances throughout this period of time, possibly due to Cao Cao's general Yu Jin's raiding in the south of Yuan Shao's territory.

Early stages

From early to mid 200, the forces of Cao Cao and Yuan Shao clashed in two separate engagements at Boma (; present-day Hua County, Henan) and Yan Ford (; near present-day Yanjin County, Henan). At Boma, Yuan Shao sent Guo Tu, Chunyu Qiong and Yan Liang to besiege Cao Cao's general Liu Yan (), but the siege was lifted after about two months when Cao Cao personally led an army to relief Liu Yan. Guan Yu slew Yan Liang in the midst of battle. While Cao Cao and his troops were evacuating Boma's residents, Yuan Shao's forces led by Wen Chou and Liu Bei caught up with them at Yan Ford, but were defeated and Wen Chou was killed in battle. Cao Cao returned to his main camp at Guandu while Yuan Shao moved to Yangwu County (; southwest of present-day Yuanyang County, Henan). Around this time, Guan Yu left Cao Cao and returned to Liu Bei.

Stalemate at Guandu and the raid on Wuchao
In late 200, Yuan Shao led his forces to attack Cao Cao at Guandu. Both sides were locked in a stalemate for months and Cao Cao's supplies were gradually running out and his men were growing weary. During this time, Yuan Shao sent Liu Bei to contact a rebel chief, Liu Pi (劉辟), in Runan Commandery (; around present-day Xinyang, Henan) and join Liu Pi in making a sneak attack on Cao Cao's base in Xuchang while Cao Cao was away at Guandu. However, Liu Bei and Liu Pi were defeated and driven back by Cao Cao's general Cao Ren. During this time, Sun Ce, a warlord based in the Jiangdong region, also contemplated attacking Xuchang and taking Emperor Xian hostage. However, he was assassinated before he could execute his plan.

In the winter of 200, following the advice of Xu You, a defector from Yuan Shao's side, Cao Cao left Cao Hong behind to defend his main camp at Guandu while he personally led 5,000 riders to raid Yuan Shao's supply depot at Wuchao (; southeast of present-day Yanjin County, Henan), which was guarded by Chunyu Qiong. Cao Cao succeeded in destroying Yuan Shao's supplies. When Yuan Shao heard that Wuchao was under attack, he sent Zhang He and Gao Lan to attack Cao Cao's main camp in the hope of diverting Cao Cao's attention away from Wuchao. However, Zhang He and Gao Lan, already frustrated with Yuan Shao, destroyed their own camps and led their troops to defect to Cao Cao's side. The morale of Yuan Shao's army fell drastically and they were utterly defeated by Cao Cao's forces, after which Yuan Shao hastily crossed the Yellow River and retreated back to northern China. Much of his supplies and many of his soldiers were captured by Cao Cao. Cao Cao also obtained several letters written by spies from his side to Yuan Shao, but he refused to conduct an investigation to find out who the spies were, and instead ordered all the letters to be burnt. Many commanderies in Ji Province surrendered to Cao Cao.

Aftermath
In the summer of 201, Cao Cao led his forces across the Yellow River and attacked Yuan Shao again, inflicting another crushing defeat on him at the Battle of Cangting and pacifying the territories in the area. In autumn, Cao Cao returned to Xuchang and sent Cai Yang (蔡揚) to attack Liu Bei, who had left Yuan Shao and allied with another rebel chief, Gong Du (共都), in Runan Commandery. Liu Bei defeated and killed Cai Yang in battle. Cao Cao personally led his forces to attack Liu Bei, who fled south upon learning Cao Cao himself was in command. He took shelter under governor Liu Biao in Jing Province. The following spring, while in his hometown, Cao Cao issued a proclamation characterising his military actions as a righteous uprising.

Unification of northern China (202–207)

Battle of Liyang

Yuan Shao died of illness in the early summer of 202 and was succeeded by his third son, Yuan Shang. In autumn, Cao Cao attacked Yuan Shang and his eldest brother Yuan Tan and defeated them, forcing them to retreat and hold up inside their fortresses. In the spring of 203, Cao Cao attacked the Yuan brothers again and defeated them. In summer, he advanced towards Ye (present-day Handan, Hebei) and returned to Xuchang later, leaving behind Jia Xin (賈信) to defend Liyang County (; present-day Xun County, Henan). Afterwards, Cao Cao issued an order establishing schools in each of his counties with 500 or more households.

Defeating Yuan Shao's heirs

Some months after Cao Cao left northern China and returned to the south, internal conflict broke out between Yuan Shang and Yuan Tan as the brothers started fighting over Ji Province. Yuan Tan, who lost to Yuan Shang, surrendered to Cao Cao and sought his help in dealing with his third brother. Cao Cao agreed to assist Yuan Tan, so, in the winter of 203, he returned to northern China. Between spring and autumn in 204, Cao Cao attacked Yuan Shang in his base at Ye and conquered the city. Yuan Shang fled further north to Zhongshan Commandery (中山郡; around present-day Dingzhou, Hebei). After capturing Ye, Cao Cao visited Yuan Shao's tomb, weeping for his childhood friend-turned-rival, and spared no effort assuaging Yuan Shao's widow. To the delight of the people in Hebei, Cao Cao issued an order exempting them from paying taxes for that year and clamped down on the power of influential landlords in the area. When Emperor Xian offered to appoint Cao Cao as the Governor of Ji Province, Cao Cao declined, preferring to stick to his appointment as the Governor of Yan Province.

While Cao Cao was attacking Yuan Shang in Ye, Yuan Tan, who had previously allied with Cao Cao against his third brother, took over some of Yuan Shang's territories and troops for himself. Cao Cao wrote to Yuan Tan to reprimand him for not adhering to their earlier agreement. Yuan Tan became afraid so he retreated to Nanpi County. In the spring of 205, Cao Cao attacked Yuan Tan, defeated him, and executed him along with his family. Ji Province was completely pacified. Around the same time, Yuan Shang had fled to join his second brother Yuan Xi but Yuan Xi was betrayed by his subordinates Jiao Chu (焦觸) and Zhang Nan (張南), who surrendered to Cao Cao. The Yuan brothers had no choice but to head further north to take shelter under the Wuhuan tribes.

In the spring of 206, Cao Cao attacked Yuan Shao's maternal nephew Gao Gan, who had surrendered to him initially but rebelled later, and defeated Gao Gan at Hu Pass (; in present-day Huguan County, Shanxi). In autumn, Cao Cao started a campaign against the pirates led by Guan Cheng (). He sent Yue Jin and Li Dian to attack Guan Cheng and pacified the eastern coast.

Campaign against the Wuhuan

In the summer of 206, Cao Cao received the surrender of thousands of Heishan bandits led by Zhang Yan. Around the time, Zhao Du () and Huo Nu () killed the Inspector of You Province and the Administrator of Zhuo Commandery (; around present-day Zhuozhou, Hebei), while the Wuhuan tribes from three commanderies attacked Xianyu Fu (鮮于輔) at Guangping County (; west of present-day Miyun District, Beijing). In early autumn, Cao Cao personally led a campaign against them and defeated Zhao Du and Huo Nu, after which his army crossed the Lu River (; in present-day Tongzhou District, Beijing) to help Xianyu Fu by attacking the Wuhuan. They succeeded in driving the Wuhuan away. Cao Cao returned to Ye by winter.

Throughout the period of civil wars during the late Eastern Han dynasty, the Wuhuan tribes in northern China had been taking advantage of the situation to invade You Province, capture and enslave thousands of people living in the area. When Yuan Shao was in power in northern China, he maintained friendly ties with the Wuhuan, so Yuan Shang and Yuan Xi found refuge under the Wuhuan chieftains. In 207, Cao Cao led a campaign against the Wuhuan and the Yuan brothers and scored a decisive victory over them at the Battle of White Wolf Mountain later that year. The campaign was difficult and dangerous, and Cao Cao rewarded his counselors who had advised him against undertaking it. Yuan Shang and Yuan Xi fled further northeast to Liaodong to take shelter under the warlord Gongsun Kang. When Cao Cao's generals were preparing for an invasion of Liaodong, Cao Cao stopped them and predicted that Gongsun Kang would kill the Yuan brothers. Cao Cao was right, as Gongsun Kang arrested and executed the Yuan brothers because he sensed that they posed a threat to him. He then sent their heads to Cao Cao as a gesture of goodwill. Northern China was basically pacified and unified under Cao Cao's control by then.

In the spring of 207, Cao Cao announced he would be distributing his wealth amongst those who had aided him, and enfeoffed over twenty of his followers as marquises, with lesser emoluments for the remainder.

Red Cliffs campaign (207–211)

Background
Cao Cao returned to Ye (present-day Handan, Hebei) in the spring of 208 after pacifying northern China. He ordered the construction of Xuanwu Pool () to train his troops in naval warfare. He also implemented changes to the political system by abolishing the Three Ducal Ministers and replacing them with the offices of the Imperial Chancellor () and Imperial Counsellor (御史大夫). He was officially appointed as Imperial Chancellor in July 208. Around this time he had the famous scholar Kong Rong – later listed by Cao Cao's own son Cao Pi as one of the foremost literary talents of the age – put to death for insousiance, along with his family.

In August 208, Cao Cao launched a southern campaign to attack Liu Biao, the Governor of Jing Province. Liu Biao died of illness in the following month and was succeeded by his younger son, Liu Cong. Liu Cong was stationed at Xiangyang while Liu Bei moved from Xinye County to Fancheng (; present-day Fancheng District, Xiangyang, Hubei). Liu Cong surrendered in late September or October 208 when Cao Cao and his forces reached Xinye County. Liu Bei and his followers fled towards Xiakou (; in present-day Wuhan, Hubei) to join Liu Biao's elder son, Liu Qi. Cao Cao sent 5,000 riders to pursue Liu Bei and after covering  in twenty-four hours they caught up with him and defeated him at the Battle of Changban. Liu Bei managed to escape and retreat safely to Xiakou with a few followers, but lost most of his supplies and equipment to the enemy. Liu Bei later formed an alliance with the warlord Sun Quan, who controlled the territories in the Wuyue region in southern China.

Meanwhile, Cao Cao advanced towards Jiangling County and reformed Jing Province's administration. He also rewarded those who helped him gain Jing Province, including those from Liu Cong's side who persuaded Liu Cong to surrender to him. Cao Cao appointed Wen Ping, a former general under Liu Biao, as the Administrator of Jiangxia Commandery (江夏郡; around present-day Xinzhou District, Wuhan, Hubei) and put him in command of some of his troops. He also recruited members of the scholar-gentry in Jing Province, such as Han Song (韓嵩) and Deng Yi, to serve under him.

Battle of Red Cliffs

Liu Zhang, the Governor of Yi Province (covering present-day Sichuan and Chongqing), had received orders to help Cao Cao recruit soldiers from his province, so he sent the new conscripts to Jiangling County. In late December 208 or January 209, Sun Quan helped Liu Bei by attacking Cao Cao's garrison at Hefei. Around the same time, Cao Cao led his forces from Jiangling County to attack Liu Bei. When they reached Baqiu (; present-day Yueyang, Hunan), Cao Cao ordered Zhang Xi () to lead a separate army to reinforce Hefei, and Sun Quan withdrew his forces from Hefei upon receiving news of Zhang Xi's arrival. Cao Cao's forces advanced to Red Cliffs () and engaged the allied forces of Liu Bei and Sun Quan, but lost the battle. Around that time, an epidemic disease had broken out in Cao Cao's army and many had died, so Cao Cao ordered a retreat. Liu Bei then went on to conquer the four commanderies in southern Jing Province.

After his defeat at Red Cliffs, Cao Cao led his remaining forces through Huarong Trail (; near present-day Jianli County, Hubei) as they were retreating. The area was very muddy and inaccessible and there were strong winds. Cao Cao ordered his weaker soldiers to carry straw and hay to lay out the path ahead so that his horsemen could proceed. The weaker soldiers ended up being stuck in the mud and many were trampled to death by the riders. Cao Cao expressed joy after he and his surviving men managed to get out of Huarong Trail safely, albeit suffering much losses. His generals were puzzled so they asked him why. Cao Cao remarked: "Liu Bei, my friend, doesn't think fast enough. If he had set fire earlier, we wouldn't have been able to get out alive." Liu Bei did think of setting fire but it was too late as Cao Cao had already escaped.

After the Red Cliffs campaign
In the spring of 209, Cao Cao reached Qiao County (; present-day Bozhou, Anhui), where he ordered small boats to be built and staged a naval drill. In autumn, he sailed along the Huai River to the garrison at Hefei, where he issued an order for local officials to provide relief to the families of soldiers who had died in battle. He then established an administration in Yang Province and started a tuntian system in Quebei (; south of present-day Shou County, Anhui). He returned to Qiao County in winter.

In the winter of 210, Cao Cao had a Bronze Sparrow Platform (or Bronze Sparrow Terrace) constructed in Ye. In January 211, Cao Cao wrote a long memorial – to the throne as well as to a more general audience including his detractors – declining to accept three counties awarded to him by Emperor Xian to be part of his marquisate, in which he also wrote at length about his life and ambitions.

In the spring of 211, Emperor Xian appointed Cao Cao's son, Cao Pi, as General of the Household for All Purposes (). Cao Pi had his own office and served as an assistant to his father, the Imperial Chancellor. At the same time, in accordance with Cao Cao's wishes in the essay he wrote earlier, Emperor Xian reduced the number of taxable households in Cao Cao's marquisate by 5,000, and granted the three counties to three of Cao Cao's sons – Cao Zhi, Cao Ju and Cao Lin – who were enfeoffed as marquises.

Sometime in early 211, Shang Yao () from Taiyuan Commandery started a rebellion in Daling County (; north of present-day Wenshui County, Shanxi). Cao Cao sent Xiahou Yuan and Xu Huang to lead an army to suppress the revolt and they achieved success.

Battle of Tong Pass (211–213)

In early 211, Cao Cao ordered Zhong Yao and Xiahou Yuan to lead an army to attack Zhang Lu in Hanzhong Commandery. They were due to pass through the Guanzhong region along the way. The warlords in Guanzhong thought that Cao Cao was planning to attack them, so they, under the leadership of Ma Chao and Han Sui, formed a coalition known as the Guanxi Coalition (; "coalition from the west of (Tong) Pass") and rebelled against the Han imperial court.

A few months later, Cao Cao personally led a campaign against the rebels and engaged them in battle in the areas around Tong Pass (in present-day Tongguan County, Shaanxi) and the banks of the Wei River. The first engagement took place when Cao Cao's forces were crossing the Wei River to the north bank, during which they suddenly came under attack by Ma Chao. Cao Cao and his forces headed back to the south bank later, where they constructed sand walls to keep the enemy at bay.

After some time, the rebels offered to cede territories and send a hostage to Cao Cao's side in exchange for peace. Acting on Jia Xu's suggestion, Cao Cao pretended to accept the offer to put the enemy at ease and make them lower their guard. Cao Cao later had talks with Han Sui (an old acquaintance of his) on at least two different occasions. The first time was a private conversation between them about old times, while the second time probably took place in the presence of Ma Chao and the other coalition members. Ma Chao and the others started to doubt Han Sui's allegiance, especially after Han Sui received a letter from Cao Cao which contained several blotted-out words, making it seem as though the recipient had deliberately edited the letter's contents to cover up something. Cao Cao took advantage of the mutual suspicion between the rebels to launch an attack on them and defeated them. Some of the warlords were killed in battle while Han Sui and Ma Chao retreated back to Guanzhong.

Aftermath
Cao Cao returned to Ye (present-day Handan, Hebei) in late 211 after receiving the surrender of one of the remaining warlords, Yang Qiu. He left Xiahou Yuan behind to defend Chang'an, a major city in the Guanzhong region. Ma Chao, who had the support of the Qiang, Di and other tribal peoples in western China, continued to ravage Guanzhong and attack Cao Cao's territories. In 213, he killed Wei Kang, the Inspector of Liang Province, seized control of the province, and forced Wei Kang's subordinates to submit to him. In late 213, Zhao Qu (), Yin Feng (尹奉) and several other officials in Liang Province rebelled against Ma Chao and drove him out of Guanzhong. With aid from Zhang Lu, Ma Chao returned and struck back at his enemies, but was defeated when Xiahou Yuan led reinforcements from Chang'an to assist Zhao Qu and his allies. Xiahou Yuan later attacked the remnants of the Guanxi Coalition (including Han Sui) and the various tribes in western China and forced them to surrender. He also eliminated Song Jian (宋建), who had rebelled against the Han government and set up a small kingdom in Fuhan County (; southwest of present-day Linxia County, Gansu).

Wars with Sun Quan (213–217)

In early 213, Cao Cao led an army to attack Sun Quan at Ruxu (; north of present-day Wuwei County, Anhui, along the Yangtze River). During the battle, Cao Cao's forces destroyed Sun Quan's camp on the west bank of the Yangtze and captured Gongsun Yang (), an area commander under Sun Quan. However, overall, both sides did not make any significant gains in the battle.

In mid-214, Cao Cao launched another campaign against Sun Quan against the advice of Fu Gan (傅幹), one of his advisers. Just like in the previous campaign, he did not make any significant gains so he retreated. In the following year, Sun Quan led his forces to attack Hefei, a heavily fortified city guarded by Cao Cao's generals Zhang Liao, Li Dian and Yue Jin, leading to the Battle of Xiaoyao Ford. Zhang Liao and the defenders inflicted a devastating defeat on Sun Quan and his forces.

In the winter of 216, Cao Cao staged a military drill in Ye (present-day Handan, Hebei), during which he personally beat a war drum to direct his troops' movements and boost their morale. After the drill, he launched another campaign against Sun Quan and arrived in Juchao (; in present-day Chaohu, Anhui) by spring in the following year. In late March or April 217, he ordered his troops to make camp at the Hao Gorge () on the west bank of the Yangtze. Sun Quan had constructed a dock and stationed defences at Ruxu. Both sides clashed at Ruxu and the battle ended with an inconclusive result. Cao Cao withdrew his forces in late April or May 217, leaving behind Xiahou Dun, Cao Ren, Zhang Liao and others to defend Juchao.

Campaign against Zhang Lu (215)

In early 215, Cao Cao launched a campaign against Zhang Lu in Hanzhong Commandery. He first sent Zhang He, Zhu Ling and others to lead an army to attack the Di tribes blocking the way in Wudu Commandery (武都郡; around present-day Longnan, Gansu). They defeated and massacred the Di population in Hechi County (; northwest of present-day Pingliang, Gansu).

By mid 215, Cao Cao's army reached Yangping Pass (; in present-day Ningqiang County, Shaanxi) after making a long and arduous journey across mountainous terrain. When his soldiers started complaining, Cao Cao announced that he would remember them for their contributions to encourage them to move on. Zhang Lu ordered his younger brother Zhang Wei (張衛) and subordinate Yang Ang (楊昂) to lead troops to defend the pass, making use of the mountainous terrain to counter Cao Cao's advances. Cao Cao was unable to overcome the enemy after launching assaults so he withdrew to put them off guard. One night, Cao Cao secretly ordered Xie Biao (解忄剽) and Gao Zuo (高祚) to lead a sneak attack on Yangping Pass. Zhang Lu retreated to Bazhong, when he heard that Yangping Pass had been taken. Cao Cao proceeded to occupy Nanzheng County, the capital of Hanzhong Commandery.

After taking control of Hanzhong Commandery, Cao Cao made some administrative changes to the commandery, such as redrawing boundaries and appointing some administrators to govern the newly formed commanderies. In late 215, Zhang Lu led his followers out of Bazhong and voluntarily submitted to Cao Cao, who accepted his surrender and granted him a marquis title. Around the time, Liu Bei had recently seized control of Yi Province (covering present-day Sichuan and Chongqing) from its governor Liu Zhang and occupied Bazhong after Zhang Lu left. Cao Cao ordered Zhang He to lead a force to attack Liu Bei, but Zhang He lost to Liu Bei's general Zhang Fei at the Battle of Baxi. About a month after Zhang Lu's surrender, Cao Cao left Nanzheng County and headed back to Ye (present-day Handan, Hebei), leaving behind Xiahou Yuan to guard Hanzhong Commandery.

War with Liu Bei in Hanzhong (217–219)

In the winter of 217, Liu Bei sent Zhang Fei, Ma Chao, Wu Lan (吳蘭) and others to garrison at Xiabian (; northwest of present-day Cheng County, Gansu). Cao Cao ordered Cao Hong to lead an army to resist the enemy. In the spring of 218, Cao Hong defeated Wu Lan and killed his deputy Ren Kui (任夔). In April or May 218, Zhang Fei and Ma Chao retreated from Hanzhong Commandery while Wu Lan was killed by Qiangduan (強端), a Di chieftain from Yinping Commandery (; around present-day Wen County, Gansu).

In August or early September 218, Cao Cao staged a military drill and launched a campaign against Liu Bei. His army reached Chang'an in October. In the meantime, Liu Bei's forces had already engaged Cao Cao's forces, under Xiahou Yuan's command, in Hanzhong Commandery. In early 219, Xiahou Yuan was killed in action at the Battle of Mount Dingjun against Liu Bei's general Huang Zhong. In April 219, Cao Cao led his forces from Yangping Pass (; in present-day Ningqiang County, Shaanxi) towards Hanzhong via Xie Valley (). Liu Bei made use of the geographical advantage he had – mountainous terrain – to hold off Cao Cao. That July, Cao Cao withdrew his forces back to Chang'an.

Battle of Fancheng (219-220)

In the autumn of 219, Cao Cao ordered Yu Jin to lead seven armies to reinforce Cao Ren, who was under siege by Liu Bei's general Guan Yu at Fancheng (; present-day Fancheng District, Xiangyang, Hubei). However, due to heavy rains, the Han River burst its banks and the seven armies were destroyed in the flood. Guan Yu captured Yu Jin, executed his subordinate Pang De, and continued to press on the attack on Cao Ren. Cao Cao ordered Xu Huang to lead another army to help Cao Ren.

At the same time, Cao Cao also contemplated relocating the imperial capital from Xuchang further north into Hebei to avoid Guan Yu, but Sima Yi and Jiang Ji told him that Sun Quan would become restless when he heard of Guan Yu's victory. They suggested to Cao Cao to ally with Sun Quan and enlist his help in hindering Guan Yu's advances. In return, Cao Cao would recognise the legitimacy of Sun Quan's claim over the territories in Jiangdong. In this way, the siege on Fancheng would automatically be lifted. Cao Cao heeded their suggestion.

Cao Cao arrived in Luoyang in the early winter of 219 after returning from his failed campaign against Liu Bei in Hanzhong Commandery.  Later, he led an army from Luoyang to relief Cao Ren, but turned back before he reached his destination because he received news that Xu Huang had already defeated Guan Yu and lifted the siege on Fancheng.

In the spring of 220, Cao Cao returned to Luoyang and remained there. In the meantime, Sun Quan had sent his general Lü Meng and others to launch a stealth assault on Liu Bei's territories in Jing Province while Guan Yu was away on the Fancheng campaign, and they succeeded in conquering Guan Yu's key bases in Jing Province – Gong'an County and Jiangling County. Guan Yu, having lost his bases and forced to withdraw from Fancheng, was eventually surrounded by Sun Quan's forces and captured in an ambush and executed. Sun Quan sent Guan Yu's head to Cao Cao, who arranged a noble's funeral for Guan Yu and had his head buried with full honours.

Titles of nobility  (213–220)

Duke of Wei
Cao Cao returned to Ye (present-day Handan, Hebei) in the spring of 212 after the Battle of Tong Pass. Emperor Xian granted him special privileges similar to those awarded to Xiao He by Emperor Gao. Cao Cao did not have to have his name announced, did not have to walk in quickly, and had permission to carry a ceremonial sword and wear shoes when he entered the imperial court. fourteen counties from five different commanderies were segregated from their respective commanderies and placed under the jurisdiction of Wei Commandery (魏郡; around present-day Handan, Hebei).

In 213, after Cao Cao returned from the Battle of Ruxu against Sun Quan, Emperor Xian issued a decree abolishing the fourteen provinces system and replacing it with an older nine provinces system. About a month after Cao Cao returned to Ye, Emperor Xian sent Chi Lü (郗慮) as an emissary to enfeoff Cao Cao as the Duke of Wei (). After Cao Cao refused the customary three times, the emperor sent a thirty-person delegation of officials to make a fourth offer of enfeoffment, which was accepted. In August 213, an ancestral temple and the sheji (altars for worshipping the gods of soil and grain) were built in Cao Cao's dukedom. Later, Emperor Xian sent a six person delegation led by high ranking government minister Wang Yi (王邑) to present betrothal gifts of jade, silk, and other precious items to Cao Cao as part of an arrangement for three of Cao Cao's daughters to become the emperor's concubines: Cao Jie, Cao Hua, and Cao Xian. It is to be understood that these grants of honours, titles, prerogatives, and imperial marriage arrangements were not of the emperor's own initiative, but orchestrated by Cao Cao and his staff, who controlled the Imperial Secretariat. As early as the Book of the Later Han, few historians offer Cao Cao the veneer of legitimacy in his appointments and enfeoffments, forgoing mention of the emperor and instead describing the actions as a personal decision.

In October 213, Cao Cao ordered the construction of the Golden Tiger Platform () and a watercourse linking the Zhang River and White Canal (). A month later, he divided Wei Commandery into the east and west divisions, each governed by a Commandant. In December, he established a ducal secretariat in his fief along with the offices of Palace Attendants and the Six Ministers.

In late January or February 214, Cao Cao attended a ceremony, known as ji li (), to promote agriculture. In late March or April, Emperor Xian sent Yang Xuan () and Pei Mao (裴茂) as emissaries to present Cao Cao with a golden official seal with a red ribbon and a yuanyou guan (), placing Cao (who was still only a duke then) in a position above other nobles.

In December 214 or January 215, Empress Fu Shou wrote a secret letter to her father Fu Wan (伏完) to tell him that Emperor Xian resented Cao Cao for the execution of Dong Cheng. The contents of the letter were hateful. The incident was exposed and Empress Fu was deposed and executed, her family exiled.

In January or February 215, Cao Cao went to Meng Ford (), a historically important spot near the site of the ancient Battle of Muye. Emperor Xian allowed him to make a maotou (; a banner decorated with animals' tails, typically reserved for the emperor) and erect a zhongju (; a bell pendant stand) in his ducal palace. Cao Cao later issued two official statements and established a licaoyuan (; a justice ministry).

In the spring of 215, Emperor Xian instated Cao Cao's daughter, Cao Jie, as the new empress. Cao Cao visited four commanderies and merged them into a new commandery – Xinxing Commandery () – with one of the counties as the commandery capital. In winter, while he was away in Hanzhong Commandery, Cao Cao created the titles of the Five Counsellors and nominal marquis titles for the first time, alongside the original six grades of marquis ranks. These new titles were awarded to Cao Cao's men who had made contributions in battle during the campaign against Zhang Lu, as Cao Cao had promised them earlier.

In February or early March 216, Cao Cao returned to Ye (present-day Handan, Hebei) after a successful campaign against Zhang Lu in Hanzhong Commandery. Two months later, he attended another ji li () ceremony.

King of Wei
In June 216, Emperor Xian promoted Cao Cao from a duke to a vassal king under the title "King of Wei" (). Cao Cao summoned Sima Fang, who had recommended him to be the Commandant of the North District in Luoyang early in his career, to meet him in Ye, where they had a chat. Later, the Wuhuan chanyu Pufulu () from Dai Commandery (; northwest of present-day Yu County, Hebei) led his various subjects to Ye to pay tribute to Cao Cao. Around the same time, Emperor Xian instated one of Cao Cao's daughters as a princess and granted her a fief with some taxable households. In August 216, the southern Xiongnu chanyu Huchuquan brought along his subjects to pay tribute to Cao Cao, who treated them like guests. Huchuquan remained in Cao Cao's vassal kingdom and placed his deputy in charge of his Xiongnu domain. In September, Cao Cao promoted Zhong Yao from the position of Grand Judge () under the Han central government to the Royal Chancellor (相國) of his vassal kingdom. He also established the offices of the Minister of Ancestral Ceremonies (奉常) and Minister of the Royal Clan (宗正) in his vassal kingdom.

In late May or June 217, Emperor Xian allowed Cao Cao to have his personal jingqi (; a banner) and have imperial guards clear the path when Cao travelled around. In late June or July, Cao Cao had a pangong () constructed. In July or August, Hua Xin was appointed as Imperial Counsellor (御史大夫). Cao Cao also established the office of the Minister of the Guards (衞尉) in his vassal kingdom. In November or December, Emperor Xian granted more ceremonial privileges to Cao Cao: have twelve fringes of pearls on his crown; ride in a golden carriage pulled by six horses; have five other carriages to accompany his main carriage when he travelled around. Cao Cao's son, Cao Pi, who was serving as General of the Household for All Purposes () in the Han imperial court, was designated as the Crown Prince () of Cao Cao's vassal kingdom.

In February or early March 218, the imperial physician Ji Ben, along with Geng Ji (耿紀), Wei Huang (韋晃) and others, started a rebellion in the imperial capital Xuchang and attacked the camp of Wang Bi (王必), a chief clerk under Cao Cao. Wang Bi suppressed the revolt with the aid of Yan Kuang (嚴匡), an Agriculture General of the Household ().

In late July or August 219, Cao Cao designated his formal spouse, Lady Bian, as his queen consort. Some months later, Sun Quan wrote to Cao Cao, expressing his desire to submit to Cao Cao and urging Cao Cao to take the throne from Emperor Xian. Cao Cao showed Sun Quan's letter to his subordinates and remarked: "This kid wants me to put myself on top of a fire!" Chen Qun, Huan Jie and Xiahou Dun also urged Cao Cao to usurp the imperial throne from Emperor Xian, but Cao Cao refused.

Death (220)

Cao Cao died on 15 March 220 in Luoyang at the age of 66 (by East Asian age reckoning). He was granted the posthumous title "King Wu" (; "martial king") by Emperor Xian. His will instructed that he be buried near Ximen Bao's tomb in Ye without gold and jade treasures, and that his subjects on duty at the frontier were to stay in their posts and not attend the funeral as, in his own words, "the country is still unstable". He was buried on 11 April 220 in the Gaoling (; "high mausoleum"). In December 220 or early January 221, after Cao Pi forced Emperor Xian to abdicate the throne in his favour and established the state of Cao Wei, he granted his father the posthumous title "Emperor Wu" (; "Martial Emperor") and the temple name "Taizu" (; "Grand Ancestor").

Cao Cao Mausoleum

On 27 December 2009, the Henan Provincial Cultural Heritage Bureau reported the discovery of Cao Cao's tomb in Xigaoxue Village, Anyang County, Henan. The tomb, covering an area of 740 square metres, was discovered in December 2008 when workers at a nearby kiln were digging for mud to make bricks. Its discovery was not reported and the local authorities knew of it only when they seized a stone tablet carrying the inscription 'King Wu of Wei' – Cao Cao's posthumous title – from grave robbers who claimed to have stolen it from the tomb. Over the following year, archaeologists recovered more than 250 relics from the tomb. The remains of three persons – a man in his 60s, a woman in her 50s and another woman in her 20s – were also unearthed and are believed to be those of Cao Cao, one of his wives, and a servant.

Since the discovery of the tomb, there have been many sceptics and experts who pointed out problems with it and raised doubts about its authenticity. In January 2010, the State Administration of Cultural Heritage legally endorsed the initial results from research conducted throughout 2009 suggesting that the tomb was Cao Cao's. However, in August 2010, 23 experts and scholars presented evidence at a forum held in Suzhou, Jiangsu to argue that the findings and the artefacts of the tomb were fake. In September 2010, an article published in an archaeology magazine claimed that the tomb and the adjacent one actually belonged to Cao Huan (a grandson of Cao Cao) and his father Cao Yu.

In 2010, the tomb became part of the fifth batch of Major Historical and Cultural Sites Protected at the National Level in China. A museum was opened at the site in April 2023.

Family

According to historical records, Cao Cao had 15 wives and concubines, 25 sons, six daughters and two adopted sons. His first formal spouse was Lady Ding, who raised his eldest son Cao Ang (born to his concubine Lady Liu). She fell out with him after Cao Ang's death and effectively separated from him. After Lady Ding left him, Cao Cao designated Lady Bian, one of his concubines, as his new formal spouse and she remained in this position permanently. Among Cao Cao's sons (excluding Cao Ang), the more notable ones are Cao Pi, Cao Zhang, Cao Zhi and Cao Chong, who were, at different points in time, considered as potential candidates to succeed their father. Cao Chong, who was born to Lady Huan, was a child prodigy who devised a method of weighing an elephant by using the principle of buoyancy. Cao Chong died prematurely at the age of 12. Cao Pi, Cao Zhang and Cao Zhi were born to Lady Bian and were known for their individual talents: Cao Pi and Cao Zhi were noted as brilliant writers and poets; Cao Zhang inherited his father's military skills. Cao Pi eventually overcame his two younger brothers in a succession struggle and was chosen to be his father's heir apparent. Three of Cao Cao's daughters – Cao Xian, Cao Jie and Cao Hua – were married to Emperor Xian. Cao Cao's two adopted sons, Qin Lang and He Yan, were conceived from his wives' previous marriages.

Research on Cao Cao's ancestry
Cao Cao was a purported descendant of Cao Shen, a statesman of the early Western Han dynasty. In the early 2010s, researchers from Fudan University compared the Y chromosomes collected from a tooth from Cao Cao's granduncle, Cao Ding (曹鼎), with those of Cao Shen and found them to be significantly different. Therefore, the claim about Cao Cao descending from Cao Shen was not supported by genetic evidence. The researchers also found that the Y chromosomes of Cao Ding match those of self-proclaimed living descendants of Cao Cao who hold lineage records dating back to more than 100 generations ago.

Zhu Ziyan, a history professor from Shanghai University, argued that Cao Ding's tooth alone cannot be used as evidence to determine Cao Cao's ancestry. He was sceptical about whether those who claim to be Cao Cao's descendants are really so because genealogical records dating from the Song dynasty (960–1279) are already so rare in the present day, much less those dating from the Three Kingdoms era (220–280). Besides, according to historical records, Cao Ding was a younger brother of the eunuch Cao Teng, who adopted Cao Cao's biological father, Cao Song. Therefore, Cao Cao had no blood relations with Cao Ding; i.e., Cao Ding was not Cao Cao's real granduncle. Zhu Ziyan mentioned that Fudan University's research only proves that those self-proclaimed descendants of Cao Cao are related to Cao Ding; it does not directly relate them to Cao Cao.

Personal life
Cao Cao was known to be frugal and modest in his daily life, showing no particular interest in aesthetic appeal. The clothes and shoes he wore at home were plain and simple. When the folding screens and curtains in his house were damaged, he simply had them mended instead of replaced. He relied on only mattresses and blankets for warmth, and had no decorative ornaments at home. When he met guests, he wore a simple hat and clothes made of raw silk and had a pouch containing a handkerchief and other small items attached to his belt. Outside of his work life, Cao Cao was known to behave in a frivolous and carefree manner. When he chatted with people, he spoke casually, occasionally poked fun at others, and shared everything on his mind. Once, during a meal, he was so amused that he laughed until he knocked his head into the dishes and soiled his face and clothing.

Cao Cao's low regard for material wealth influenced not only his personal life, but also his political and military careers and other aspects of his life. In the late Eastern Han dynasty, fujins (; similar to bokgeon), especially those made of silk, became popular among the scholar-gentry and upper class because they felt that wearing a fujin made one look cultured and refined. Cao Cao, however, disapproved of wearing expensive headgear as he felt that the country lacked monetary resources due to chaos and famines, hence he advocated replacing silk fujins with the older bians (; a type of cap) made of leather. He also suggested the use of colours (instead of material) to distinguish status in the military. His ideas were implemented. He also invented a type of hat, the qia (), for casual wear. He felt that it was a pity to have very extravagant arrangements in weddings, so, when his daughter got married, she was dressed modestly and had no more than 10 ladies-in-waiting to accompany her. After winning battles, he awarded the spoils of war to his men who had made contributions. He heavily rewarded those who deserved to be rewarded; undeserving people who expected to receive something from him had their hopes dashed. When others presented gifts to him, he shared those gifts with his subordinates. He felt that it was of no benefit to own many possessions because such things would eventually wear out. He personally prepared the clothes he would wear at his funeral and the items he would be buried with, which were sufficient to fill up just four trunks.

Interests and hobbies
Cao Cao was known to be very skilled in hand-to-hand combat. When he was still a youth, he once broke into the eunuch Zhang Rang's personal chambers but was discovered. Armed with only a short ji halberd, he brandished the weapon at the guards as he slowly retreated and eventually climbed over the wall and escaped. He also enjoyed hunting and once shot down 63 pheasants in a single day during a hunting expedition in Nanpi County.

Cao Cao was very fond of reading books, especially military classics and treatises. Apart from writing military journals and annotating Sun Tzu's The Art of War, he also collected various military books and compiled extracts from them. His works were spread around. He also gave out new reading materials to his officers when they went to battle. He never neglected reading throughout his military career of over 30 years. When Sun Quan encouraged his general Lü Meng to take up scholarly pursuits, he cited Cao Cao as an example: "Mengde agrees that he is already old but he never gives up on learning."

Some of Cao Cao's other interests and hobbies were recorded in Zhang Hua's Bowuzhi, which mentioned that he enjoyed calligraphy, music and weiqi. His proficiency in these arts were comparable to other experts who lived around the same time as him, such as: calligraphers Cui Yuan, Cui Shi (), Zhang Zhi and Zhang Xu (張昶); musicians Huan Tan and Cai Yong; and weiqi players Shan Zidao (), Wang Jiuzhen () and Guo Kai (). Cao Cao was also interested in alchemy and the art of longevity. He met and sought help from various fangshis, including Zuo Ci, Hua Tuo, Gan Shi (甘始) and Xi Jian (郄儉). The Bowuzhi stated that he attempted tasting wild kudzu up to one chi in length and sipping wine dipped with zhen's feathers.

Poetry

Cao Cao was an accomplished poet, as were his sons Cao Pi and Cao Zhi. The Wei Shu recorded that whenever he ascended high ground, he would compose odes and poems and turn them into musical pieces with the aid of music accompaniment. He was also a patron of poets such as Xu Gan. Of Cao Cao's works, only a remnant remain today. His verses, unpretentious yet profound, helped to reshape the poetic style of his time and beyond, eventually contributing to the poetry styles associated with Tang dynasty poetry. Cao Cao, Cao Pi and Cao Zhi are known collectively as the "Three Caos". The Three Caos' poetry, together with additional poets, became known as the Jian'an style, which contributed to Tang and later poetry. Cao Cao also wrote verse in the older four-character per line style characteristic of the Classic of Poetry. Burton Watson describes Cao Cao as: "the only writer of the period who succeeded in infusing the old four-character metre with any vitality, mainly because he discarded the archaic diction associated with it and employed the ordinary poetic language of his time." Cao Cao is also known for his early contributions to the Shanshui poetry genre, with his 4-character-per-line, 14-line poem "View of the Blue Sea" (觀滄海).

Evaluation of Cao Cao
Opinions of Cao Cao have been divided from as early as the Jin dynasty (265–420) – the period immediately after the Three Kingdoms era (220–280) – to modern times. There were some who praised him for his achievements in poetry and his political and military careers, but there were also others who hold unfavourable views of him for his cruelty, cunning and alleged traitorous ways. In traditional Chinese culture and literature, Cao Cao is stereotypically portrayed as a sly, power hungry and treacherous tyrant, serving as a nemesis to Liu Bei.

Chen Shou, who wrote Cao Cao's official biography in the Sanguozhi, praised Cao Cao for his exemplary wisdom and sagacity and his promotion of meritocracy in the civil service and the military. Chen Shou's concluding remarks on Cao Cao were "an extraordinary man and an outstanding hero of his time."

During the Tang dynasty (618–907), Emperor Taizong wrote elegiac addresses for Cao Cao, complimenting Cao Cao for his ability to maintain control of the political situation in a turbulent period, and commenting that Cao Cao was "exceptionally brilliant for a military leader but not competent enough to rule as an emperor." However, Liu Zhiji condemned Cao Cao for his oppressive treatment of Emperor Xian and his role in the murder of Empress Fu Shou and claimed that Cao Cao's "crimes" were worse than those of Tian Chengzi and Wang Mang.

In the Northern Song dynasty (960–1127), Sima Guang, who wrote the Zizhi Tongjian, echoed Chen Shou's positive views of Cao Cao's championing of a meritocratic style of governance and praised Cao Cao's acumen for recognising and grooming talents, but also noted that Cao Cao was strict and harsh in upholding laws. During that period, shuoshu (traditional Chinese storytelling) was very popular among the masses, so folktales and legends about the Three Kingdoms era were widely circulated and narrated. The poet Su Shi mentioned that "audiences looked distressed when they heard that Xuande (Liu Bei) had lost battles and some even shed tears; they expressed joy and delight when they heard that Cao Cao had been defeated."
 During the Southern Song dynasty (1127–1279), Zhu Xi produced the Tongjian Gangmu (a condensed version of Sima Guang's Zizhi Tongjian), in which he regarded Shu Han as the legitimate successor to the Han dynasty and denounced Cao Cao as cuan ni ().

In the Ming dynasty (1368–1644), Luo Guanzhong wrote the historical novel Romance of the Three Kingdoms, which romanticises the historical events before and during the Three Kingdoms period. Cao Cao was cast as a primary antagonist in the novel.

The 20th-century writer Lu Xun once said: "Actually, Cao Cao was a very capable person and was at least a hero. I may not agree with Cao Cao, but I am nonetheless always very impressed with him."

Mao Zedong was known to be a great admirer of Cao Cao and he actively advocated providing historical "redress" for the warlord. His praise on Cao Cao centred on three aspects: Cao Cao's literary talents (poetry and writings); Cao Cao's contributions to the unification of China (after the Three Kingdoms period); Cao Cao's determination in the face of adversity.

Modern historians such as Lü Simian, Zhang Zuoyao and Yi Zhongtian have written books to present more balanced views of Cao Cao. Between 2006 and 2007, Yi Zhongtian conducted a series of 52 lectures about the Three Kingdoms, of which nearly a third focused on Cao Cao, on the CCTV programme Lecture Room.

In anecdotes and legends

From works preserved in Pei Songzhi's annotations
Cao Cao's uncle complained to Cao Song several times about his nephew's behaviour, so Cao Cao became more wary of his uncle. One day, Cao Cao encountered his uncle on the street and pretended to twist his mouth and collapse on the ground. When his uncle asked him what happened, he claimed he had been paralysed after suffering from a stroke. Cao Cao's uncle went to inform Cao Song, who immediately rushed to the scene, where he saw that his son was well. Cao Song asked his son: "Your uncle says you had a stroke. Is it true?" Cao Cao replied: "I didn't have a stroke, but I have lost the love of my uncle, which is probably why he would say something so nasty about me." Cao Song believed his son and refused to trust his brother again when his brother complained about Cao Cao. Cao Cao was able to do as he wished.

Yuan Zhong (袁忠), the chief administrative officer in Cao Cao's hometown, attempted to prosecute Cao Cao when he was still an ill-behaved and idling young rascal. Huan Shao (桓邵), who was also from Cao Cao's hometown, treated Cao Cao with contempt when he was still a youth. After Cao Cao became the Inspector of Yan Province in the early 190s, Bian Rang (邊讓), who was from Chenliu Commandery (陳留郡; around present-day Kaifeng, Henan), insulted and belittled him. Cao Cao had Bian Rang and his family arrested and executed. Yuan Zhong and Huan Shao fled to Jiao Province to evade Cao Cao, but Cao ordered Jiao Province's Administrator, Shi Xie, to track down and kill them along with their families. Huan Shao gave up on escaping, surrendered to Cao Cao and begged for his life. Cao Cao asked him coldly: "You think you can be spared from death just by kneeling in front of me?" He then ordered Huan Shao's execution.

After assuming his first appointment as the Commandant of the North District () of the imperial capital Luoyang, he ordered his subordinates to make five-coloured wooden staffs and place them outside the office. He also instructed them to use those staffs to kill any person who violated the night curfew regardless of his/her status. Some months later, an uncle of the influential eunuch Jian Shuo violated the curfew by walking on the streets at night. Cao Cao arrested Jian Shuo's uncle and ordered his men to beat him to death. This incident shocked everyone in Luoyang and nobody dared to violate the night curfew after that. The eunuchs resented Cao Cao for his actions but could not do anything to him because he had the law on his side. They then recommended him to serve as the Prefect of Dunqiu County (), sending him out of Luoyang.

During one military expedition, when his army passed through wheat fields, Cao Cao issued an order: "Any person who damages the crops will be executed." His soldiers immediately dismounted from their horses and trod carefully through the fields. Cao Cao's steed rushed into the field and trampled on the wheat. He then summoned his registrar () and asked him what punishment he should receive. The registrar said that according to Confucian philosophy, Cao Cao, a man of exalted status, was exempt from punishment. Cao Cao said: "How can I expect to lead my men if I gave an order and violated it myself? However, I am the commander so I can't kill myself. However, I still have to punish myself." He drew his sword, cut off a lock of his hair and threw it to the ground. In some later traditions, Cao Cao also executes his horse.

Cao Cao was often accompanied by one of his favourite concubines when he slept. Once, before taking a short nap, he instructed her to wake him up a while later. The concubine saw that he was sound asleep so she did not wake him up. When Cao Cao woke up later, he ordered her to be beaten to death.

During another military campaign, when Cao Cao's food supplies were running out, he asked his supply officer what they should do. The officer suggested that they reduce the amount of grain rationed out. Cao Cao agreed. Later, when rumours about Cao Cao deceiving his soldiers started spreading around, Cao Cao told the supply officer: "I want to 'borrow' your life to appease the men, or else the problem can't be resolved." He then executed the officer, put his head on display and announced: "(This man) stole from the granary and reduced the amount of grain rationed out. I had him executed under military law."

After Xiahou Yuan's death in battle, Cao Cao was growing tired of the Hanzhong campaign and wanted to abandon Hanzhong Commandery. He gave an order, "chicken rib" (), which baffled his subordinates, who did not know what he meant. Yang Xiu, a Registrar () under Cao Cao, immediately gave instructions for everyone to pack up and prepare to leave. When they asked Yang Xiu how he knew that Cao Cao wanted to withdraw, Yang Xiu replied: "It's a pity to discard a piece of chicken rib, but there's nothing from it which can be eaten. The King is comparing Hanzhong to a piece of chicken rib. That's how I know he intends to retreat." Cao Cao withdrew his forces back to Chang'an afterwards. In Luoyang a few months later, he revisited the office where he first served as a Commandant of the North District () in his early career.

The Shiyu and the Cao Man Zhuan provided dramatic accounts of the events before Cao Cao's death. The Shiyu mentioned that after he returned to Luoyang from Hanzhong Commandery, Cao Cao wanted to build a palace hall so he ordered a Zhuolong Shrine () to be demolished to make way, but blood spilled out from a tree. The Cao Man Zhuan mentioned that Cao Cao wanted a pear tree to be moved. When the workers uprooted the tree, blood spilled out from its roots, and the workers were all shocked. Cao Cao heard about it and went there to take a closer look. He was disgusted and felt that it was an unlucky omen. He became ill after returning home.

From the Shishuo Xinyu
Cao Cao and Yuan Shao were close friends and playmates when they were young. Once, they decided to play a prank on a newlywed couple by kidnapping the bride. After breaking into the house, they shouted: "There's a thief!" When everyone in the house came out to catch the "thief", they sneaked into the house and kidnapped the bride. While fleeing from their pursuers, Yuan Shao fell into a hedge covered with thorns and was trapped there. Cao Cao shouted: "The thief is here!" Yuan Shao became panicky so he struggled and managed to free himself and escape. Suggestive parallels have been drawn between this anecdote and the actual political situation of the 190s, when Cao Cao had control over the emperor but was free to chastise Yuan Shao for disloyalty.

When Yuan Shao and Cao Cao were young, Yuan Shao once played a prank on Cao Cao by sending someone to throw a dagger at Cao Cao while he was asleep at night. The dagger landed low and missed Cao Cao. Cao Cao saw that and knew that the thrower would aim higher on the next attempt, so he changed his sleeping posture. He was right because the dagger landed higher on the second throw.

During one military expedition, Cao Cao and his army lost track of their water source and were very thirsty. Cao Cao announced: "There's a plum forest filled with juicy plums ahead. We can quench our thirst there." The soldiers started salivating when they heard that, which temporarily quenched their thirst until they finally found a water source. This story is the origin of the Chinese idiom "thinking of plums to quench one's thirst" (), which means to use one's imagination to satisfy one's craving for something.

Cao Cao often said: "I can sense it when someone is about to harm me." He once secretly instructed a servant: "Approach me from the side with a concealed dagger and then I will say I can sense it. After you are caught, you mustn't say that I told you to do so, and nothing will happen to you. I will reward you handsomely later!" The servant trusted Cao Cao and did as he was told without fear, but Cao still had him executed after he was "captured". The servant did not realise that he had been fooled, even before he died. Cao Cao's enemies, who were plotting to assassinate him, believed that his so-called 'sensing power' was real and were demoralised by this incident.

Cao Cao often said: "Don't approach me when I am asleep. I will subconsciously attack anyone who is near me. Beware, all of you!" Once, while he was taking an afternoon nap, someone covered him with a blanket. He woke up and killed the person. After this incident, when he was asleep, no one dared to approach him.

Once, when Cao Cao was about to meet an emissary from the Xiongnu, he felt that he looked ugly and might not be able to command respect so he ordered Cui Yan to impersonate him while he carried a sword, stood beside Cui Yan, and pretended to be a bodyguard. After the meeting, Cao Cao sent someone to ask the Xiongnu emissary about his impression of the King of Wei. The Xiongnu emissary replied: "The King looks handsome and extraordinary. However, the man who was carrying a sword and standing beside him is a real hero." Cao Cao had the emissary killed when he heard that.

Cao Cao had a concubine who sang very well but was cruel and malicious. There were many occasions where he wanted to kill her or send her away, but did not do so because he appreciated her singing talent. He then selected another 100 women and ordered his concubine to teach them to sing. After some time, one of the 100 women could sing as well as Cao Cao's concubine, so Cao Cao executed his concubine and replaced her with that woman.

In Romance of the Three Kingdoms

The 14th-century historical novel Romance of the Three Kingdoms by Luo Guanzhong is a romanticisation of the events of the late Eastern Han dynasty and the Three Kingdoms period. While adhering to historical facts most of the time, the novel inevitably reshaped Cao Cao to some extent, portraying him as a cruel and suspicious villain. In some chapters, Luo Guanzhong created or transmitted fictional or semi-fictional events involving Cao Cao. As the novel has been adapted to many modern forms of media, so has Cao Cao's image. Given the source material upon which these adaptations are founded, Cao Cao continues to be characterised as a prominent villain.

See the following for some fictitious stories in Romance of the Three Kingdoms involving Cao Cao:

 Cao Cao presents a precious sword, where Cao Cao attempts to assassinate Dong Zhuo
 Cao Cao arrested and released by Chen Gong, where Cao Cao's actual arrest and release is ahistorically rewritten
 Lü Boshe, whose entire family is personally murdered by Cao Cao
 Guan Yu releases Cao Cao at Huarong Trail, which is not where Guan Yu was after the Battle of Red Cliffs
 New Book of Mengde, where Cao Cao plagiarises an ancient military treatise and claims it as original work
 Battle of Tong Pass, where Cao Cao repeatedly alters his appearance to escape Ma Chao
 Cao Cao's death, where Cao Cao imprisons his physician and dies of an untreated head illness

In popular culture
Through to modern times, the Chinese equivalent of the English idiom "speak of the Devil" is "speak of Cao Cao and Cao Cao arrives" ().

After the Communists won the Chinese Civil War in 1949, there were perceived similarities between Mao Zedong and Cao Cao, so propagandists began a long-term and sustained effort to improve Cao Cao's image in popular culture. In 1959, Peng Dehuai wrote a letter to Mao, in which he compared himself to Zhang Fei. Because of Mao's popular association with Cao Cao, Peng's comparison implied that he had an intuitively confrontational relationship with Mao. Mao had the letter widely circulated in order to make Peng's attitude clear to other party members and proceeded to purge Peng and end his career.

Chinese opera

Cao Cao is represented as a cunning and deceitful man in Chinese opera, where his character is given a white facial makeup to reflect his treacherous personality. When Luo Guanzhong wrote the historical novel Romance of the Three Kingdoms, he took much of his inspiration for Cao Cao from Chinese opera.

Film and television
The "Father of Hong Kong cinema", Lai Man-Wai, portrayed Cao Cao in The Witty Sorcerer, a 1931 comedy film based on a story in Romance of the Three Kingdoms about Zuo Ci playing tricks on Cao Cao. In the Shaw Brothers film The Weird Man, Cao Cao appeared in the beginning of the film with Zuo Ci. Zuo Ci was playing tricks on him by giving him a tangerine with no fruit inside. This was later referenced in another film titled Five Element Ninjas.

Other notable actors who have portrayed Cao Cao in film and television include:
 Bao Guo'an in the 1994 Chinese television series Romance of the Three Kingdoms. Bao won two Best Actor awards at the 1995 Golden Eagle Awards and Flying Apsaras Awards for his performance.
 Damian Lau in the 2008 Hong Kong film Three Kingdoms: Resurrection of the Dragon.
 Zhang Fengyi in the 2008–09 Chinese film Red Cliff.
 Chen Jianbin in the 2010 Chinese television series Three Kingdoms and the 2018 Chinese television series Cao Cao.
 Jiang Wen in the 2011 Hong Kong film The Lost Bladesman.
 Chow Yun-fat in the 2012 Chinese film The Assassins.
 Zhao Lixin in the 2014 Chinese television series Cao Cao.
 Yu Hewei in the 2017 Chinese television series The Advisors Alliance.
 Tse Kwan-ho in the 2018 Chinese television series Secret of the Three Kingdoms.
 Wang Kai in the 2019 Hong Kong film Dynasty Warriors

Card games
In the selection of hero cards in the Chinese card game San Guo Sha (三国杀), there is also a Cao Cao hero that players can select at the beginning of the game.

Cao Cao is also referenced in Magic: The Gathering, as the card "Cao Cao, Lord of Wei". This card is black, the colour representing ruthlessness and ambition, though not necessarily evil. It was first printed in Portal Three Kingdoms and again in From the Vault: Legends.

Video games

Cao Cao appears in all instalments of Koei's Romance of the Three Kingdoms video game series. He is also featured as a playable character in Koei's Dynasty Warriors and Warriors Orochi series. He also features in Koei's Kessen II as a playable main character.

Other appearances
As with most of the other relevant generals of the period, Cao Cao is portrayed as a young female character in the Koihime Musō franchise. He is also the central character in the Japanese manga series Sōten Kōro. Barry Hughart's novel The Story of the Stone mentions the Seven Sacrileges of Tsao Tsao, most of which involve family.

Notes

References

Sanguozhi
  Cited as Sanguozhi.
1: 武帝紀. In , pp. 1–55.
2: 文帝紀. In , p. 72.
32: 先主傳. In , pp. 876, 878.
36: 關張馬黃趙傳. In , pp. 941–942.
54: 周瑜魯肅吕蒙傳. In , p. 1275.
 Citations from Sanguozhi

Sanguozhi zhu
  Cited as Sanguozhi zhu.

 Citations from annotations in the Sanguozhi

Zizhi Tongjian

 Citations from the Zizhi Tongjian

Shishuo Xinyu

 Citations from the Shishuo Xinyu

Other citations

Modern sources

Further reading
 .

External links

Cao Cao – World History Encyclopedia

155 births
220 deaths
3rd-century Chinese poets
3rd-century government officials

Chinese non-fiction writers
Military writers from Imperial China
Han dynasty poets
Han dynasty chancellors
Han dynasty warlords
Poets from Anhui
Politicians from Bozhou
Political office-holders in Hebei
Political office-holders in Shandong
Regents of China

Cao Cao


The Glebe Town Hall is a landmark civic building in Glebe, a suburb of Sydney, Australia. It stands at 160 St Johns Road and was built in 1880 in the Victorian Italianate style by architect Ambrose Thornley. The Town Hall was the seat of The Glebe Municipal Council from 1880 to 1948 when it became a community centre and hall run by the City of Sydney.  After being transferred to the Municipality of Leichhardt in 1968, it was returned to the control of the City of Sydney following a boundary change on 8 May 2003.

The City of Sydney Council commissioned extensive restoration works in 2008, which were completed in 2013, and the hall is now listed on the heritage register of the City of Sydney as "representative as the seat of local metropolitan government for Glebe Municipality, the fourth municipality to be incorporated under The Municipalities Act of 1858." The building is also listed on the (now defunct) Register of the National Estate.

History and description
With the establishment of The Glebe Municipality on 1 August 1859, the council first met in the long room of a local hotel, but a few months later moved to a house which Chairman George Wigram Allen had placed at their disposal until a purpose-built cottage was rented for the purposes of Municipal Chambers. In July 1879 the council approved a £5000 design for a new town hall located at the junction of St John's Road, Mount Vernon Street and Lodge Street, designed by prominent local architect, Ambrose Thornley.

The Town Hall, surmounted by a clock which had been donated by Sir George Wigram Allen, was completed along with a Council Clerk's residence at the rear, and opened on 24 June 1880 by Mayor Thomas Dunn, with The Sydney Morning Herald noting its appearance thus:  On its completion, The Evening News also noted the quality of the building and praised Thornley's design:

In 1889 the Glebe Council decided to extend the existing Town Hall to create an additional smaller Hall, Meeting Room and new Council Chambers, with their design also carried out by Ambrose Thornley in the same style. The new additions were located on the Mount Vernon Street side of the original building and consisted of new Council Chambers and meeting room on the ground floor. On 19 February 1916, a Roll of Honour memorial plaque for the Glebe residents killed during World War I was erected in the foyer of Town Hall "by the council, ratepayers and residents" of Glebe.

Later history and restoration
The chambers continued to serve as the administrative centre of Glebe until 1948, when The Glebe Municipality was amalgamated into the City of Sydney through the Local Government (Areas) Act 1948. The City of Sydney maintained the hall as a community centre and venue, which was continued by Leichhardt Council when they took possession following a boundary change in 1968. In August 1984, various green political groups met in the hall for the launching of the Greens New South Wales political party. Following a fire in June 1988 in the central stairwell which caused damage to the main hall, Leichhardt council made extensive repairs to the hall, overseen by architects Otto Cserhalmi and Partners and Stonehill Restorations builders, which were unveiled by Leichhardt mayor Doug Spedding in September 1989. The hall remained under the control of Leichhardt until 8 May 2003, when a further boundary change transferred large parts of Glebe and Forest Lodge back to the City of Sydney.

In 2008, the Lord Mayor of Sydney, Clover Moore, commissioned extensive restoration works to be undertaken by prominent conservation/restoration architectural firm, Tonkin Zulaikha Greer, which were completed and unveiled by Moore on 2 March 2013. The extensive restorations included a new Welsh slate roof, reconstruction of damaged parapets and finials, the reinstatement of the original natural ventilation system. A rainwater storage system was implemented, to be reused on site for the new habitat garden created for the endangered local Blue Wren. The rear of the town hall was also cleared to make way for a new lift and fire stair extension connecting all levels of the building and providing rear access. With the stripping-back of wall coverings in the main hall, pillars with ornate plaster carvings created using the Italian Sgraffito technique (similar in design to the interiors of the Santa Maria dei Miracoli, Venice) were uncovered and reinstated, making them one of the few surviving examples of the technique in Sydney.

On its reopening, Moore noted that "The City's restoration has transformed the building into an accessible and sustainable community venue with modern facilities, while also highlighting its unique heritage features [...] The elegant rooms of the hall have played host to social and civic events throughout Glebe's history, from wartime balls and evening concerts, to debating clubs and political meetings. Now that this $6.8 million project is complete, the hall can once again be enjoyed by the community now and into the future."

Gallery

See also

 List of town halls in Sydney
 Architecture of Sydney

References

External links

Glebe Town Hall – City of Sydney

Government buildings completed in 1880
Town halls in Sydney
Italianate architecture in Sydney
1880 establishments in Australia
New South Wales Heritage Database

Glebe Town Hall