Cao Cao, chancellor to the last Eastern Han emperor Xian, took control of northern China at the close of the Han dynasty. In 213 Emperor Xian granted him the title Duke of Wei and ten cities as a dukedom, and in 216 raised him to King of Wei. Cao Cao died on 15 March 220, and on 11 December of that year his son Cao Pi forced Emperor Xian to abdicate and proclaimed the state of Wei. The capital stood first at Xuchang and was moved to Luoyang in 226, where the Cao court governed the northern plain and the approaches to the Guanzhong basin.
The Cao court rebuilt the Han machinery of government but split its executive. Cao Pi created the Central Inspectorate and an Imperial Secretariat plenipotentiary to curb the older Imperial Secretariat, and he reduced provincial governors to inspectors who handled civil affairs only, with military command placed in regional offices or the capital. Minister Chen Qun devised the nine-rank system for nominating officials, which later dynasties kept until the Sui examinations replaced it. Wei fought constant campaigns against Shu and Wu. Between 228 and 234 Zhuge Liang led five expeditions toward Chang'an on the western border in present Gansu and Shaanxi, and Cao Zhen, Sima Yi, and Zhang He repelled them. Battles at Dongkou, Jiangling, and Shiting on the southern and eastern borders produced stalemates rather than territorial gains.
Wei's ruling class traced the Cao line to the Yellow Emperor through Zhuanxu, a claim that scholars such as Jiang Ji attacked by insisting that the descendants of Emperor Shun bore the surname Tian rather than Cao. Under Cao Pi and Cao Rui, intellectual constraints loosened, producing the Jian'an poetry style associated with Cao Zhi and the Seven Sages of the Bamboo Grove, while the kaishu script of calligraphy took shape under the official Zhong Yao. Taoism, Confucianism, and folk religion all shaped the court, and the Sima clan later courted orthodox Confucian scholars who disdained these independent circles. Military expansion carried Wei far beyond its core: Sima Yi besieged Gongsun control of Liaodong for three months with 40,000 troops and took the capital Xiangping in September 238, and in 244 Wei forces destroyed Hwando and sent the Goguryeo king fleeing, cutting off the tribute on which his kingdom's economy depended.
Power drained from the Cao house after the regent Sima Yi seized control from his co-regent Cao Shuang in 249 during the reign of Cao Fang, leaving Cao Fang a puppet. Wang Ling's rebellion failed and he took his own life. Sima Shi deposed Cao Fang in 254 on charges of planning revolt and installed Cao Mao, whose own coup against Sima Zhao in 260 ended with his death at the hands of Cheng Ji, a subordinate of Jia Chong. Cao Huan then sat on the throne as a figurehead until Sima Zhao's successor Sima Yan forced his abdication on 4 February 266, establishing the Jin dynasty. The Sima regents had already overcome the Three Rebellions at Shouchun, including Zhuge Dan's revolt crushed in 258, and Wei's conquest of Shu in 263 gave the regime its last significant military success.
Cao Wei was founded in 220 CE when Cao Pi forced Emperor Xian of Han to abdicate, building on the power his father Cao Cao had amassed as Han chancellor. The capital began at Xuchang before moving to Luoyang in 226 CE. Though Wei controlled the north and claimed the Han mandate, rival states Shu Han in the southwest and Eastern Wu in the southeast refused its authority, leaving the realm in a state of near-constant warfare along its western and southern borders.
Rulers
Wars & turning points
Rulers & characters
- Cao Pi r. 220–226 CE [3]Founding emperor of Cao Wei · Cao
Forced Emperor Xian of Han to abdicate on 11 December 220 CE and proclaimed himself emperor, establishing Cao Wei at Xuchang. He created the Central Inspectorate and Imperial Secretariat plenipotentiary to centralize power, reduced provincial Governors to Inspectors with only civil authority, and adopted Chen Qun's nine-rank system for civil service nominations.
He died on 29 June 226 CE after only six years on the throne.
- Cao Rui r. 226–239 CE [3]Second emperor of Cao Wei · Cao
Succeeded his father Cao Pi and ruled until 22 January 239 CE. His reign saw repeated wars with Shu Han and Eastern Wu, including Zhuge Liang's five northern expeditions against Wei's Gansu and Shaanxi borders, all repelled by Wei generals Cao Zhen, Sima Yi, and Zhang He. He moved the capital to Luoyang and ordered Sima Yi's 238 CE invasion of Liaodong, which captured Xiangping after a three-month siege.
He died on 22 January 239 CE, leaving the throne to the young Cao Fang.
- Cao Fang r. 239–254 CE [3]Third emperor of Cao Wei · Cao
Ascended as a child under the regency of Cao Shuang and Sima Yi. In 249 CE Sima Yi seized power from Cao Shuang in a coup, reducing Cao Fang to a puppet ruler. Sima Shi deposed him in 254 CE on grounds of planning rebellion and replaced him with Cao Mao.
His deposition marked the effective collapse of Cao family imperial authority.
- Cao Mao r. 254–260 CE [3]Fourth emperor of Cao Wei · Cao
Installed by Sima Shi after Cao Fang's deposition. In 260 CE he attempted a coup to seize back state power from regent Sima Zhao but was killed by Cheng Ji, a military officer serving under Jia Chong.
He personally led a small armed force against the Sima regent and was cut down in the attempt.
- Cao Huan r. 260–266 CE [3]Fifth and last emperor of Cao Wei · Cao
Enthroned after Cao Mao's death but remained a puppet of the Sima family. In 263 CE Wei forces under Deng Ai and Zhong Hui conquered Shu Han. On 4 February 266 CE he was forced to abdicate to Sima Yan, who proclaimed the Jin dynasty.
He was posthumously known as Emperor Yuan of Wei.
- Sima Yi r. 249–251 CE (as regent) [3]Wei regent and power broker · Sima
Seized state power from co-regent Cao Shuang in a 249 CE coup during Cao Fang's reign. He captured Xiangping in the 238 CE Liaodong campaign, repelled Zhuge Liang's northern expeditions, and after his death on 7 September 251 CE passed authority to his sons Sima Shi and Sima Zhao.
He laid the foundation for his grandson Sima Yan to overthrow Wei and found the Jin dynasty.
Wars, rebellions & turning points
- War Abdication of Emperor Xian [3]Cao Pi vs. Emperor Xian of Han
On 11 December 220 CE, Cao Pi forced the last Eastern Han emperor to abdicate in his favor, ending the Han dynasty and establishing the state of Wei at Xuchang.
Outcome: Cao Wei replaced Eastern Han as the dominant northern dynastic state.
- War Battles of Dongkou and Jiangling [3]Cao Wei vs. Eastern Wu
Wei and Wu clashed at Dongkou (222–223 CE) and Jiangling (223 CE) along the southern and eastern borders. Neither side achieved a decisive breakthrough, and the frontier largely stabilized in stalemate.
Outcome: Territorial stalemate between Wei and Wu; no major expansion for either side.
- War Zhuge Liang's Northern Expeditions [3]Shu Han vs. Cao Wei
Shu chancellor Zhuge Liang led five military campaigns against Wei's western borders in present-day Gansu and Shaanxi, aiming to capture Chang'an and march on Luoyang. Wei armies under Cao Zhen, Sima Yi, Zhang He, and others repelled every invasion without Shu making significant gains.
Outcome: Wei's western frontier held; Shu Han failed to alter the strategic balance.
- War Battle of Shiting [3]Cao Wei vs. Eastern Wu
Wei and Wu met at Shiting in 228 CE as part of their ongoing southern and eastern border conflicts. The engagement ended without a decisive strategic result for either side.
Outcome: Continued stalemate on the Wu frontier.
Follow Battle of Shiting - War Conquest of Liaodong [3]Cao Wei vs. Gongsun clan of Liaodong
After general Guanqiu Jian failed to subjugate the Gongsun clan, Grand Commandant Sima Yi led 40,000 troops in June 238 CE against Liaodong Commandery. Following a three-month siege with some Goguryeo assistance, Wei forces captured the capital Xiangping by late September, conquering the commandery.
Outcome: Liaodong Commandery was brought under direct Wei control after four decades of Gonsun rule.
- War Goguryeo–Wei Wars [3]Cao Wei vs. Goguryeo
Goguryeo initiated war in 242 CE by attempting to take a Chinese fort to cut off Chinese access to Korean territories. Wei responded with a devastating invasion, destroying the Goguryeo capital Hwando in a reprisal raid in 244 CE and sending its king fleeing.
Outcome: Goguryeo was reduced to insignificance for half a century, with its tributary economy broken.
- Rebellion Sima Yi's Coup against Cao Shuang [3]Sima Yi vs. Cao Shuang
During Cao Fang's reign, regent Sima Yi seized state power from his co-regent Cao Shuang in a coup. Cao Shuang was executed, and Cao Fang was reduced to a puppet ruler while Sima Yi wielded state authority.
Outcome: Imperial authority in Wei collapsed; the Sima family began its rise to dominance.
- Civil war Deposition of Cao Fang and Guanqiu–Wen Rebellion [3]Sima Shi vs. Cao Fang, Guanqiu Jian, Wen Qin
Sima Shi deposed Cao Fang in 254 CE on rebellion grounds and installed Cao Mao. Guanqiu Jian and Wen Qin responded with a rebellion that Sima Shi crushed despite undergoing eye surgery beforehand; the strain contributed to his death on 23 March 255 CE.
Outcome: Sima Shi's death passed regency to his brother Sima Zhao; Cao Wei emperors remained puppets.
Achievements & reckoning
Achievements
- Nine-rank civil service system [3]
Minister Chen Qun developed the nine-rank system for civil service nomination during Cao Wei, a method for classifying and selecting officials that was adopted by later Chinese dynasties until it was superseded by the imperial examination system under the Sui dynasty.
Follow Nine-rank system - Centralization of provincial power [3]
Cao Pi reduced the authority of provincial Governors (州牧), who had wielded too much power under the Han, by converting their role into Inspectors (刺史) limited to civil affairs, while military affairs were handled by regional or capital-based military personnel.
Follow Chancellor (China) - Kaishu calligraphy and Jian'an poetry [3]
The kaishu style of Chinese calligraphy developed between the late Eastern Han and Cao Wei periods, with Zhong Yao as its first known master. The Jian'an poetry style also flourished, exemplified by Cao Cao's son Cao Zhi.
Follow Chinese language - Conquest of Shu Han [3]
In 263 CE, Wei generals Deng Ai and Zhong Hui completed the conquest of Shu Han, unifying the north and southwest under Wei rule and bringing the realm to its greatest territorial extent.
Follow Conquest of Shu by Wei
Reckoning
- Puppet emperors and Sima usurpation [3]
After Sima Yi's 249 CE coup, Wei emperors from Cao Fang onward were reduced to puppet rulers while the Sima family held real power. Cao Fang was deposed in 254 CE, Cao Mao was killed in a failed 260 CE coup, and Cao Huan was forced to abdicate in 266 CE, ending the dynasty.
- Costly wars with Shu and Wu [3]
Decades of warfare against Shu Han and Eastern Wu drained Wei's manpower and treasury. Zhuge Liang's northern expeditions and repeated Wu border battles produced mostly stalemates, exhausting the realm without decisive expansion.
- Destruction of Goguryeo's capital [3]
Wei forces destroyed Hwando in a 244 CE reprisal raid during the Goguryeo–Wei Wars, sending the Goguryeo king fleeing and breaking tributary relationships that formed much of the Korean kingdom's economy.
Deeper cuts
Jian'an Poetry
The Jian'an poetry style flourished under Cao Wei, rooted in the literary circle of Cao Cao and his sons Cao Pi and Cao Zhi. Written during an age of war and political fracture, these poems combined restrained elegance with grief, ambition, and the awareness of mortality, influencing Chinese verse for centuries afterward.
Cao Zhi, son of Cao Cao, is the first known master of the Jian'an style.
Kaishu Calligraphy
The kaishu (regular script) style of Chinese calligraphy developed between the late Eastern Han dynasty and the Cao Wei dynasty. Zhong Yao, a Wei official, became its first known master, establishing a model of balanced, structured brushwork that became the standard for Chinese writing.
Zhong Yao served as an official of Wei and is regarded as the father of kaishu.
Nine-Rank Official Selection
Chen Qun's nine-rank system classified candidates for government office into nine grades based on merit and family standing. Local officials nominated men for service, creating a bureaucratic pathway that shaped Chinese administration for centuries until the Sui dynasty replaced it with imperial examinations.
The system ranked candidates from the highest to the lowest of nine grades for civil appointment.
Wu Zhu Coinage
Cao Wei used ancient Chinese coinage, specifically the Wu Zhu cash coin, as its currency. These bronze coins facilitated tax collection, market exchange, and military pay across the realm's cities, including Luoyang, Handan, Xian, and Pyongyang.
Wu Zhu coins remained a standard Chinese currency long after Wei fell.
Taoism and Confucianism
Cao Wei's religious life centered on Taoism alongside Confucianism and Chinese folk religion. Intellectual constraints relaxed under Cao Cao's administrative influence, allowing new groups of thinkers such as the Seven Sages of the Bamboo Grove to form, though these freedoms were later overturned under the Jin dynasty.
The Seven Sages of the Bamboo Grove represented a circle of intellectuals who embraced freer thought during Wei.
Structural lenses
Drafted by HY4 Flash (lens-v1.1) from the cited sources.
Conscripted Military Households and the Liaodong Levy
Cao Wei's field armies drew on conscripts and on military households tied to state farms first organized under Cao Cao in the late Han, binding grain production to hereditary service. Mobilization on a grand scale is visible in June 238, when Sima Yi marched 40,000 troops against the Gongsun clan's Liaodong commandery, four decades of de facto independence, with Goguryeo auxiliaries alongside. The same regiments decided the throne: Cheng Ji, an officer serving Jia Chong, struck down Emperor Cao Mao in 260, while three successive Shouchun rebellions demonstrated how thoroughly generals had mastered the court.
Xiangping fell in late September 238 after a three-month siege, closing the Gongsun hold on Liaodong.
Hwando's Destruction and the Fortified Capital Chain
Fortified capitals trace the physical edge of Wei's northern wars. A reprisal raid in 244 razed Hwando, Goguryeo's walled capital, and sent its king fleeing; the tributary relationships with neighboring tribes that sustained Goguryeo's economy were broken, and Chinese annals mention the kingdom no more for half a century. Inside Wei the governing seat moved from Xuchang to Luoyang, with Chang'an guarding the road into the capital. Walled centers at Handan, Xian, and Pyongyang fell within a territory measured at 2,972,966 square kilometers.
Hwando was razed in 244; Goguryeo's king escaped capture and eventually settled in a new capital.
Nine-Rank Nomination and the Rise of Kaishu
Chen Qun’s nine-rank system organized civil-service nominations, while Cao Pi split central administration between a new Central Inspectorate and an Imperial Secretariat plenipotentiary. Provincial inspectors handled civil affairs; military matters went to regional offices or the capital. The period also saw kaishu calligraphy and Jian'an poetry develop, with Zhong Yao and Cao Zhi among their earliest masters.
Intellectual constraints eased under Cao Wei, allowing new circles such as the Seven Sages of the Bamboo Grove to form; orthodox Confucian pressure returned under the Simas.
Underappreciated & strange truths
Sima Shi underwent eye surgery before the 255 insurrection by Guanqiu Jian and Wen Qin, and the strain of crushing it cost him his life on 23 March 255, after which he handed the regency to his younger brother Sima Zhao.
- Emperor Cao Mao's Failed Coup [3]
In 260 CE, Emperor Cao Mao personally led a small armed force against regent Sima Zhao in an attempt to restore imperial authority. He was killed by Cheng Ji, an officer serving under the Sima subordinate Jia Chong, making Cao Mao one of the few Chinese emperors to die in an attempted coup against his own minister.
- Goguryeo Vanished from Chinese Records [3]
After Wei's 244 CE destruction of Hwando and the flight of its king, Goguryeo was reduced to such insignificance that Chinese historical texts made no mention of the state for fifty years, despite its later resurgence as a major Korean kingdom.
Follow Goguryeo–Wei Wars - Cao Family Claimed Descent from the Yellow Emperor [3]
According to the Book of Wei by Wang Chen, the Cao family traced its lineage to the Yellow Emperor through his grandson Zhuanxu and claimed kinship with Emperor Shun, a genealogy attacked by the official Jiang Ji, who argued only the Tian surname descended from Shun.
Follow Book of Wei
State ledger
- Lifespan
- 224–264 CE
- Peak territory
- 2,972,966 km²
- Capital
- Luoyang
- Religion
- Taoism
- Currency
- ancient Chinese coinage
- Seshat ID
- cn_wei_k
Lineage & succession
Connected world
Wei inherited Eastern Han bureaucracy and northern China's capital and frontier structures, faced rival Shu Han and Eastern Wu across the Three Kingdoms period, exerted influence over Goguryeo on the Korean peninsula, and passed its territory to the Western Jin dynasty.
Drafted by HY4 Flash (links-v2.0) from the cited sources.
-
Emperor Xian granted Cao Cao the Duke of Wei title with ten cities in 213 and raised him to vassal king in 216; Cao Pi then forced the emperor's abdication in 220.
-
Goguryeo moved to seize a Chinese fort in 242; Wei invaded, destroyed the capital Hwando in a reprisal raid in 244, and broke the tribal tributary ties underpinning Goguryeo's economy.
-
Zhuge Liang launched five campaigns against Wei's western borders from 228 to 234; generals Cao Zhen, Sima Yi and Zhang He repelled each invasion aimed at Chang'an.
-
Wei fought Wu at Dongkou in 222–223, Jiangling in 223 and Shiting in 228, all stalemates; Sun Quan, once a nominal Wei vassal, declared independence in 222 and became Emperor of Wu in 229.
Drafted by Claude Haiku 5.5 (polity-v1.5) from six cited sources · almanac by Nemotron 3.5 Super VL (almanac-v1.2) · deep lenses by HY4 Flash (lens-v1.1), and checked that every citation points to one of them. See the evidence How AI is used
XCities & tongues
Mapped cities & trade towns
| City | Country | Near peak | Peak pop. | Growth | Globe |
|---|---|---|---|---|---|
| Luoyang | China | 330k | 887k (1975 CE) | Dossier → Locate → | |
| Handan | China | — | 615k (1975 CE) | Locate → | |
| Xian | China | — | 1.80M (1975 CE) | Dossier → Locate → | |
| Pyongyang | Dem. People's Republic of Korea | — | 400k (1950 CE) | Locate → |
Languages across the footprint
| Language | Family | Macroarea | Horizon |
|---|---|---|---|
| Old Chinese | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Classical Chinese | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Pai-lang | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Middle Chinese | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Mandarin Chinese | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Gau | Tai-Kadai | Eurasia | Glottolog 5.3 |
| Tangut | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Gelao Mulao | Tai-Kadai | Eurasia | Glottolog 5.3 |
| Luren | Sino-Tibetan | Eurasia | Glottolog 5.3 |
| Caijia | Sino-Tibetan | Eurasia | Glottolog 5.3 |
XIArchives & dossiers
Dossiers across this ground
- Red Cliffs & Jian'an Letters: Cai Yan's Songs & Three Kingdoms (208 CE) · East Asia, 208 CEOpen dossier →
Yangtze river fire-ships, bronze-era frontier captivity ballads, and seven poets writing amidst Han collapse
- Niya & Loulan: Kharosthi Wooden Slips on the Southern Silk Road (280 CE) · Central Asia & Steppe, 280 CEOpen dossier →
Gandhari Prakrit court contracts, camel taxes, and vineyard deeds sealed under desert sand along the Tarim Basin
XIICulture & letters
From the source
Book of Han (漢書) Ban Zhao · c. 111 CE “Official history of China's Western Han dynasty, finished under the Eastern Han in the year 111.”
This dynastic history established the model of official court-sponsored historiography that Cao Wei and its successor states would inherit: when Cao Pi took the throne from Emperor Xian in 220 CE, his Wei dynasty was recorded and legitimized through the same chronicle tradition pioneered by the Han histories.
Model-drafted synthesis · GLM-5.3 Flash
Primary works, letters & books
No matching primary books indexed for this span yet.
XIIISources & provenance
- Cliopatria Historical Polity Borders v0.2.0 (Seshat Databank). CC-BY-4.0.
- Wikidata Historical Entities & Lineage Spine. CC0-1.0.
- Wikipedia — Cao Wei. CC-BY-SA-4.0.
- Reba / Chandler Historical Urban Population Estimates (3700 BCE–1975 CE). CC-BY-4.0.
- Glottolog 5.3 Global Language & Family Classification. CC-BY-4.0.
- Book of Han (漢書) (Ban Zhao (completed by the Ban family under the Eastern Han)). CC BY-SA 4.0 / Public Domain.