Template:Short description Template:About Template:Redirect {{#invoke:Infobox|infoboxTemplate |templatestyles = Template:Infobox country/styles.css | bodyclass = ib-country vcard | aboveclass = adr | above = {{#if:Wei{{#invoke:Lang|lang}}

    | {{#if:Wei

|

Wei
       }}{{#if:{{#invoke:Lang|lang}}

|

              }}{{#ifeq:|yes
              |Micronation
       }}

|

}}

| subheader = {{#if:220–266 | 220–266 | {{#if:220|220{{#if:266|–266 }} }} }}

| image1 = {{#if:

 |Template:Infobox country/imagetable }}

| data1 = {{#if:

|Motto: Template:If empty{{#if:|

{{{englishmotto}}}

}}

   }}

| class2 = anthem | data2 = {{#if:

       |Anthem: Template:If empty
       }}{{#if:
       |Anthems: {{{anthems}}}
       }}{{#if:
       |
Royal anthem: {{{royal_anthem}}}
       }}{{#if:
       |
Flag anthem: {{{flag_anthem}}}
       }}{{#if:
       |
National march: {{{national_march}}}
       }}{{#if:
       |
Territorial anthem: {{{territorial_anthem}}}
       }}{{#if:
       |
Regional anthem: {{{regional_anthem}}}
       }}{{#if:
       |
State anthem: {{{state_anthem}}}
       }}{{#if:
       |
March: {{{march}}}
       }}

| data3 = {{#if:

    |{{#if:
              | Template:If empty
}}Template:If empty }}

| data4 = {{#if:Three Kingdoms.png

|{{#invoke:InfoboxImage|InfoboxImage|image=Three Kingdoms.png|size=|upright=1.15|alt=|title=China in 262, with territories of Cao Wei in yellow }}{{#if:China in 262, with territories of Cao Wei in yellow|

China in 262, with territories of Cao Wei in yellow

}} }}

| data5 = {{#if:

|{{#invoke:InfoboxImage|InfoboxImage|image=|size=|upright=1.15|alt=|title=Location of Cao Wei }}{{#if:|

}} }}

| label6 = Status | data6 = {{#if:Empire|Template:Infobox country/status text }}

| label7 = Location | data7 =

| label8 = {{#if: | {{{capital_type}}} | Capital }}{{#ifeq: {{#ifeq:|capital

                        |capital|{{#switch:Template:Ubl
                          | [[]] = capital
                          |  = capital
                          | not capital

}}}}|capital |

and largest city
             }}

| data8 = {{#if:Template:Ubl|Template:Ubl{{#if:|
{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:city}}}} }}

| rowclass9 = {{#if:Template:Ubl|mergedrow}} | label9 = Capital-in-exile | data9 = {{#ifexist:|[[]]|}}

| rowclass10 = {{#if:Template:Ubl|mergedrow}} | label10 = {{#if:| {{{admin_center_type}}} | Administrative center }} | data10 = {{#switch:

 |capital | =
 |[[Template:Ubl]] =
 |Template:Ubl =
 |#default = {{{admin_center}}}{{#if:Template:Ubl||{{#if:|
{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:city}}}} }} }}

| rowclass11 = {{#if:Template:Ubl|mergedbottomrow}} | label11 = Largest city | data11 = {{#ifeq: {{#ifeq:|capital

                        |capital|{{#switch:Template:Ubl
                          | [[]] = capital
                          |  = capital
                          | not capital
                         }}}}|capital |
              | Template:If empty
              }}

| rowclass12 = mergedtoprow | label12 = Official languages | data12 = | rowclass13 = mergedrow | label13 = {{#if:|Recognized|Recognised}} languages | data13 = Template:If empty | rowclass14 = mergedrow | label14 = {{#if:|Recognized|Recognised}} national languages | data14 = Template:If empty | rowclass15 = mergedrow | label15 = {{#if:|Recognized|Recognised}} regional languages | data15 = Template:If empty | label16 = Common languages | data16 = Eastern Han Chinese


| rowclass17 = {{#ifeq:|yes

          |{{#ifeq:|yes |mergedrow}}
          |{{#ifeq:|yes |mergedbottomrow}} }}

| label17 ={{#ifeq:|yes

|

 |Template:If empty
 }}

| data17 =

| rowclass18 = {{#ifeq:|yes |mergedbottomrow}} | label18 = {{#ifeq:|yes

|

 |Template:If empty
 }}

| data18 =

| label19 = Ethnic groups {{#if: |

({{{ethnic_groups_year}}})

|

}}

| data19 =

| label20 = Religion {{#if: |

({{{religion_year}}})

|

}}

| data20 = Taoism, Confucianism, Chinese folk religion

| label21 = Demonym(s) | data21 = {{#if:

 |{{#ifexist:{{{demonym}}} people
    | [[{{{demonym}}} people|{{{demonym}}}]]
    | {{{demonym}}}
   }}
 }}

| label22 = Type | data22 =

| label23 = Template:If empty | data23 =

| label24 = {{#if:Monarchy

    | {{#if:
              | [[{{{politics_link}}}|{{#ifeq:|yes|Organizational structure|Government}}]]| {{#ifexist:Politics of Cao Wei
                 | {{#ifeq:|yes|Organizational structure|Government}}| {{#ifeq:|yes|Organizational structure|Government}}}}}}}}

| data24 = Monarchy

| header25 = {{#if:Monarchy || {{#if:

       | {{#if:
          | Leaders          
          | Government 
         }} 
       }} }}

| rowclass26 = mergedrow | data26 = {{#if:|Template:Infobox country/multirow }}

| rowclass27 = mergedrow | label27 = {{#if:Emperor| Emperor }} | data27 = {{#if:Emperor| }} | rowclass28 = mergedrow | data28 = {{#if:Dec 220 – Jun 226 | Template:Infobox country/multirow }}

| rowclass29 = mergedrow | label29 = {{#if:| {{{title_representative}}} }} | data29 = {{#if:| }} | rowclass30 = mergedrow | data30 = {{#if:|Template:Infobox country/multirow }}

| rowclass31 = mergedrow | label31 = {{#if:|{{{title_deputy}}} }} | data31 = {{#if:| }} | rowclass32 = mergedrow | data32 = {{#if:|Template:Infobox country/multirow }}

| label40 = Legislature | data40 = | rowclass41 = mergedrow

| label41 =

• {{#if:|{{{type_house1}}}|Upper house}}

| data41 = | rowclass42 = mergedbottomrow

| label42 =

• {{#if:|{{{type_house2}}}|Lower house}}

| data42 =

| rowclass43 = {{#if: |mergedtoprow}} | header43 = {{#if:

  |{{#if:

| {{{sovereignty_type}}}{{#if: | 

{{{sovereignty_note}}}

}}

     | {{#if:| | Establishment }}
 }} }}

| label44 = Establishment | data44 = {{#if:

     |
     |
     }}

| label45 = {{#if:Three Kingdoms|Historical era|History}} | data45 = {{#if:Three Kingdoms |{{#ifexist:Three Kingdoms|Three Kingdoms|Three Kingdoms}} | {{#if:11 December220| }}}}

| rowclass46 = {{#if: |mergedrow |mergedbottomrow}} | data46 = {{#if:|Template:Infobox country/multirow }}

| rowclass47 = {{#if:11 December220 |mergedrow |mergedbottomrow}} | data47 = {{#if:11 December220|Template:Infobox country/multirow }}

| rowclass60 = mergedtoprow | header60 = {{#if:

 | {{#if:
              | [[{{{area_link}}}|Area {{#ifeq:|yes|claimed|}}]]
              | {{#ifexist:Geography of Cao Wei
                 | Area {{#ifeq:|yes|claimed|}}
                 | Area {{#ifeq:|yes|claimed|}}}}}} }}

| rowclass61 = {{#if:|mergedrow|mergedbottomrow}}

| label61 =

• Total

| data61 = {{#if:

 |{{#if:
    |Template:Convinfobox
    |{{#if:
       |Template:Convinfobox
     }}
  }}{{#if: | ({{{area_rank}}}) }}
 }}

| rowclass62 = {{#if:|mergedrow|mergedbottomrow}}

| label62 =

• Land

| data62 = {{#if:

 |{{#if:
    |Template:Convinfobox
    |{{#if:
       |Template:Convinfobox
     }}
  }}
 }}

| rowclass63 = {{#if:|mergedrow|mergedbottomrow}}

| label63 =

• Water

| data63 = {{#if:

 |{{#if:
    |Template:Convinfobox
    |{{#if:
       |Template:Convinfobox
     }}
  }}
 }}

| rowclass64 = {{#if:|mergedrow|mergedbottomrow}}

| label64 =

• Water (%)

| data64 =

| rowclass65 = {{#if:|mergedrow|mergedbottomrow}}

| label65 =

• 

| data65 = {{#if:| }}

| rowclass66 = {{#if:|mergedrow|mergedbottomrow}}

| label66 =

• 

| data66 = {{#if:| }}

| rowclass67 = {{#if:|mergedrow|mergedbottomrow}} | label67 = 260 | data67 = {{#if: | Template:Convinfobox }}

| rowclass68 = {{#if:|mergedrow|mergedbottomrow}} | label68 = | data68 = {{#if: | Template:Convinfobox }}

| rowclass69 = {{#if:|mergedrow|mergedbottomrow}} | label69 = | data69 = {{#if: | Template:Convinfobox }}

| rowclass70 = {{#if:|mergedrow|mergedbottomrow}} | label70 = | data70 = {{#if: | Template:Convinfobox }}

| rowclass71 = {{#if:|mergedrow|mergedbottomrow}} | label71 = | data71 = {{#if: | Template:Convinfobox }}

| rowclass72 = mergedrow

| label72 =

• {{{FR_metropole}}}

| data72 = {{#if:| }}

| rowclass73 = mergedrow

| label73 =

• IGN

| data73 = {{#if:

 |{{#if:
    |Template:Convinfobox{{#if:| ([[List of countries and dependencies by area|]])}}
  }}
}}

| rowclass89 = mergedbottomrow

| label89 =

| data89 = {{#if:

 |{{#if:
    | Template:Convinfobox{{#if:| ([[List of countries and dependencies by area|]])}}
  }}
}}

| rowclass90 = mergedtoprow | header90 = {{#if:4,432,881 (disputed)<ref>Zou Jiwan (Template:Zhi), Zhongguo Tongshi – Weijin Nanbeichao Shi {{#invoke:Lang|lang}}, (1992).</ref>Template:Efn

    |{{#if:
              | {{#ifeq:{{{population_link}}}|no|Population|[[{{{population_link}}}|Population]]}}| {{#ifexist:Demographics of Cao Wei
                 | Population| Population}}}} }}

| rowclass91 = mergedrow

| label91 =

• {{#if: |{{{population_estimate_year}}} estimate|Estimate}}

| data91 = {{#if:

       |{{{population_estimate}}}{{#if: | ({{{population_estimate_rank}}})}}
       }}

| rowclass92 = mergedrow

| label92=

• 

| data92= {{#if:|}}

| rowclass93= mergedrow

| label93=

• 

| data93= {{#if:|}}

| rowclass94= mergedrow | data94= {{#if:4,432,881 (disputed)<ref>Zou Jiwan (Template:Zhi), Zhongguo Tongshi – Weijin Nanbeichao Shi {{#invoke:Lang|lang}}, (1992).</ref>Template:Efn|Template:Infobox country/multirow }}


| rowclass95= mergedrow

| label95=

• {{#if: |{{{population_census_year}}} census|Census}}

| data95= {{#if:

 |{{{population_census}}}{{#if: | ({{{population_census_rank}}})}}
 }}

| rowclass96= mergedrow | label96 = {{#if:|{{#if:|Template:Nobold}}}} | data96 = {{#if:|{{#if:|}}}}

| rowclass97 = mergedrow

| label97=

• Total

| data97= {{#if:|{{#if:

|{{{FR_total_population_estimate}}}{{#if:| ({{{FR_total_population_estimate_rank}}})}}
 }} }}

| rowclass98 = mergedrow

| label98=

• {{{FR_metropole}}}

| data98= {{#if:|{{{FR_metropole_population}}}{{#if:

| ({{{FR_metropole_population_estimate_rank}}})}}
}}

| rowclass99 = mergedbottomrow

| label99=

• Density

| data99= {{#if:

    | Template:Convinfobox{{#if: | ({{{population_density_rank}}})}}
    }}

| rowclass100 = {{#if:|mergedbottomrow|mergedtoprow}} | label100 = Membership | data100=

| rowclass101= mergedtoprow | label101= {{#ifeq:|yes|Claimed|}} GDP Template:Nobold | data101= {{#if:

    |{{#if: |{{{GDP_PPP_year}}} }}estimate
    }}

| rowclass102= mergedrow

| label102=

• Total

| data102= {{#if:

    |{{{GDP_PPP}}}{{#if: | ({{{GDP_PPP_rank}}})}}
    }}

| rowclass103= mergedbottomrow

| label103=

• Per capita

| data103= {{#if:

    |{{{GDP_PPP_per_capita}}}{{#if: | ({{{GDP_PPP_per_capita_rank}}})}}
    }}

| rowclass104= mergedtoprow | label104= {{#ifeq:|yes|Claimed|}} GDP Template:Nobold | data104= {{#if:

  |{{#if: |{{{GDP_nominal_year}}} }}estimate
  }}

| rowclass105= mergedrow

| label105=

• Total

| data105= {{#if:

    |{{{GDP_nominal}}}{{#if: | ({{{GDP_nominal_rank}}})}}
    }}

| rowclass106= mergedbottomrow

| label106=

• Per capita

| data106= {{#if:

       | {{{GDP_nominal_per_capita}}}{{#if: | ({{{GDP_nominal_per_capita_rank}}})}}
      }}

| label107= Gini{{#if: | Template:Nobold}} | data107= {{#if:

    | {{#switch:
             |increase = Template:IncreaseNegative |decrease = Template:DecreasePositive |steady = Template:Steady }}{{{Gini}}}
Template:Nowrap{{#if: | ({{{Gini_rank}}})}}}}

| label108= HDI{{#if: | Template:Nobold}} | data108= {{#if:

    | {{#switch:
             |increase = Template:Increase |decrease = Template:Decrease |steady = Template:Steady }}{{{HDI}}}
Template:Nowrap{{#if: | ({{{HDI_rank}}})}}}}

| label109= {{#ifeq:|yes|Purported currency|Currency}} | data109= {{#if:Chinese coin, Chinese cash (Wu Zhu)

    | Chinese coin, Chinese cash (Wu Zhu) {{#if: |({{{currency_code}}})}}
  }}

| rowclass119= {{#if: |mergedtoprow}} | label119= Time zone | data119= {{#if:

    |Template:Nowrap {{#if:|({{{time_zone}}})}}
    |
    }}

| rowclass120= {{#if: |mergedrow |mergedbottomrow}}

| label120=

• Summer (DST)

| data120= {{#if:

    |Template:Nowrap {{#if:|({{{time_zone_DST}}})|{{#if:|({{{DST}}})}}}}
    |{{#if:|{{{time_zone_DST}}}|}}
    }}

| rowclass121= mergedbottomrow | label121= | data121=

| label122 = Antipodes | data122=

| label123 = Date format | data123=


| label126= {{#if:

   |{{#ifexist:Telephone numbers in Cao Wei
              | Calling code
              | Calling code
             }}
  }}

| data126=

| label127= ISO 3166 code | data127= {{#switch:

    |omit = 
    | = {{#if:Cao Wei
             | {{#if:Template:ISO 3166 code
                | [[ISO 3166-2:Template:ISO 3166 code|Template:ISO 3166 code]]
               }}
            }}
    |#default = [[ISO 3166-2:{{{ISO3166CODE}}}|{{{ISO3166CODE}}}]]
   }}

| label128= Internet TLD | data128=

| data129 = {{#if:

|

Website
{{{official_website}}}
    }}

| data130= {{#if:

| {{#invoke:InfoboxImage|InfoboxImage|image=|size=|upright=1.15|alt=|title=Location of Cao Wei }}{{#if:|

}}

 }}

| data134 = {{#if:Han dynasty#Eastern Han|Eastern HanJin dynasty (266–420)#Western Jin (266–316)|Western Jin

             |Template:Infobox country/formernext

}}

| label135 = Today part of | data135 = Template:Ubl

| data136 = {{#if:

|

    {{#if:|
  1. }}{{#if:|
  2. }}{{#if:|
  3. }}{{#if:|
  4. }}{{#if:|
  5. }}{{#if:|
  6. }}{{#if:|
  7. }}{{#if:|
  8. }}

}}

| data137 = {{#if:

|

    {{#if:|
  1. }}{{#if:|
  2. }}{{#if:|
  3. }}{{#if:|
  4. }}{{#if:|
  5. }}{{#if:|
  6. }}{{#if:|
  7. }}{{#if:|
  8. }}

}} | data138 = {{#if:|

{{{footnotes}}}{{#if:|
{{{footnotes2}}}}}

}}

| belowclass = mergedtoprow noprint | below = {{#if:| Template:Navbar }} }}{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox country with unknown parameter "_VALUE_"|ignoreblank=y| admin_center_type | admin_center | alt_coat | alt_flag | alt_flag2 | alt_map | alt_map2 | alt_map3 | alt_symbol | anthem | anthems | antipodes | area_acre | area_data2 | area_data3 | area_footnote | area_ha | area_km2 | area_label | area_label2 | area_label3 | area_land_acre | area_land_footnote | area_land_ha | area_land_km2 | area_land_sq_mi | area_link | area_rank | area_sq_mi | area_water_acre | area_water_footnote | area_water_ha | area_water_km2 | area_water_sq_mi | regexp1 = border_[ps][%d]+ | calling_code | capital_exile | capital_type | capital | cctld | coa_size | coat_alt | common_languages | common_name | conventional_long_name | coordinates | currency_code | currency | date_end | regexp2 = date_event[%d]+ | date_format | date_post | date_pre | date_start | demonym | regexp3 = deputy[%d]+ | drives_on | DST_note | DST | empire | englishmotto | era | regexp4 = established_date[%d]+ | regexp5 = established_event[%d]+ | established | ethnic_groups_ref | ethnic_groups_year | ethnic_groups | event_end | event_post | event_pre | event_start | regexp6 = event[%d]+ | flag| flag_alt | flag_alt2 | flag_border | flag_caption | flag_caption | regexp7 = flag_[ps][%d]+ | flag_size | flag_type | flag_type_article | flag_width | flag2_border | regexp8 = footnote_[a-h] | regexp9 = footnote[%d]+ | footnotes | footnotes2 | FR_cadastre_area_km2 | FR_cadastre_area_rank | FR_cadastre_area_sq_mi | FR_foot | FR_foot2 | FR_foot3 | FR_foot4 | FR_foot5 | FR_IGN_area_km2 | FR_IGN_area_rank | FR_IGN_area_sq_mi | FR_metropole_population_estimate_rank | FR_metropole_population | FR_metropole | FR_total_population_estimate_rank | FR_total_population_estimate_year | FR_total_population_estimate | GDP_nominal_per_capita_rank | GDP_nominal_per_capita | GDP_nominal_rank | GDP_nominal_year | GDP_nominal | GDP_PPP_per_capita_rank | GDP_PPP_per_capita | GDP_PPP_rank | GDP_PPP_year | GDP_PPP | Gini_change | Gini_rank | Gini_ref | Gini_year | Gini | government_type | HDI_change | HDI_rank | HDI_ref | HDI_year | HDI | house1 | house2 | image_coat | image_flag | image_flag2 | image_map_alt | image_map_caption | image_map_size | image_map | image_map2_alt | image_map2_caption | image_map2_size | image_map2 | image_map3 | regexp10 = image_[ps][%d]+ | image_symbol | iso3166code | languages_sub | languages_type | languages | languages2_sub | languages2_type | languages2 | largest_city | largest_settlement_type | largest_settlement | regexp11 = leader_name[%d]+ | regexp12 = leader_title[%d]+ | regexp13 = leader[%d]+ | legislature | life_span | linking_name | location_map | loctext | lower_house | map_caption | map_caption2 | map_caption3 | map_width | map2_width | map3_width | membership_type | membership | micronation | motto | name | national_anthem | national_languages | national_motto | native_name | navbar | nummembers | official_languages | official_website | org_type | other_symbol_type | other_symbol | regexp14 = [ps][%d]+ | patron_saint | patron_saints | percent_water | politics_link | pop_den_footnote | population_census_rank | population_census_year | population_census | population_data2 | population_data3 | population_density_km2 | population_density_rank | population_density_sq_mi | population_estimate_rank | population_estimate_year | population_estimate | population_label2 | population_label3 | population_link | recognised_languages | recognised_national_languages | recognised_regional_languages | recognized_languages | recognized_national_languages | regexp15 = ref_area[%d]+ | regexp16 = ref_pop[%d]+ | regional_languages | recognized_regional_languages | religion_ref | religion_year | religion | regexp17 = representative[%d]+ | royal_anthem | flag_anthem | march | national_march | regional_anthem | territorial_anthem | state_anthem | sovereignty_note | sovereignty_type | regexp18 = stat_area[%d]+ | regexp19 = stat_pop[%d]+ | regexp20 = stat_year[%d]+ | status_text | status | symbol| symbol_type_article | symbol_type | symbol_width | text_symbol_type | text_symbol | time_zone_DST | time_zone | title_deputy | title_leader | title_representative | today | type_house1 | type_house2 | upper_house | utc_offset_DST | utc_offset | regexp21 = year_deputy[%d]+ | year_end | year_exile_end | year_exile_start | regexp22 = year_leader[%d]+ | regexp23 = year_representative[%d]+ | year_start}}Template:Main other{{#if:|{{#ifeq:Empire|Colony|Template:Main other|{{#ifeq:Empire|Exile|Template:Main other}}}} }} Template:Infobox Chinese {{#invoke:Sidebar|collapsible | name = History of China | style = background:#FFEECC; | bodyclass = plainlist | pretitle = Part of a series on the | title = History of China | image = File:"History of China" for template heading.svg | listtitlestyle = background:#FFE4B5;border-top: 1px solid #666;border-bottom: 1px solid #666;color: #000 !important; | centered list titles = yes | expanded =

| aboveclass = hlist | above =

| list1name = Prehistoric | list1title = Prehistoric | list1style = background: #f0faff; text-align: left | list1 =


Yellow, Yangtze, and Liao civilization

| list2name = Ancient | list2title = Ancient | list2style = background: #eeffe8; text-align: left | list2 =


Late Shang Template:Nowrap

Western Zhou Template:Nowrap
Eastern Zhou Template:Nowrap
Spring and Autumn Template:Nowrap
Warring States Template:Nowrap

| list3name = Imperial | list3title = Imperial | list3style = background: #fffde9; text-align: left | list3 =

{{#invoke:navbox|navbox | border = none | name = Imperial China A | listclass = plainlist | liststyle = background: #fffde9; text-align: left

| list1 =


Chu–Han Contention Template:Nowrap
Western Han Template:Nowrap
Xin Template:Nowrap
Eastern Han Template:Nowrap

Wei, Shu, and Wu

}}

{{#invoke:Navbox with columns|navbox | border = none | name = Imperial China B | listclass = plainlist | style = background: #fffde9; text-align: left | colwidth= 50% | col1 =

Western Jin Template:Nowrap
Eastern Jin Template:Nowrap

| col2 =

}}


{{#invoke:navbox|navbox | border = none | name = Imperial China C | listclass = plainlist | liststyle = background: #fffde9; text-align: left | list1 =



}}


{{#invoke:Navbox with columns|navbox | border = none | name = Imperial China D | listclass = plainlist | style = background: #fffde9; text-align: left | colwidth= 50% | col1 =


Northern Song Template:Nowrap
Southern Song Template:Nowrap

| col2 =

}}


{{#invoke:navbox|navbox | border = none | name = Imperial China E | listclass = plainlist | liststyle = background: #fffde9; text-align: left | list1 =



}}

| list4name = Modern | list4title = Modern | list4style = background: #fff0f6; text-align: left | list4 =

Chinese Civil War Template:Nowrap
Manchukuo Template:Nowrap
Great Retreat Template:Nowrap

{{#invoke:Navbox with columns|navbox | border = none | name = Modern China A | listclass = plainlist | style = background: #fff0f6; text-align: left | colwidth= 50% | col1 =

| col2 =

}}

| list5name = Related articles | list5title = Related articles | list5class = hlist | list5 =

| below =

| navbar = {{#ifeq:|subtemplate |off}} }}

Wei (Template:ZhTemplate:Efn) was one of the major dynastic states in China during the Three Kingdoms period. The state was established in 220 by Cao Pi based upon the foundations laid by his father Cao Cao during the end of the Han dynasty. Its capital was initially located at Xuchang, and was later moved to Luoyang.

The name Wei first became associated with Cao Cao when he was named the Duke of Wei by the Eastern Han government in 213, and became the name of the state when Cao Pi proclaimed himself emperor in 220. Historians often add the prefix "Cao" to distinguish it from other Chinese states known as Wei. The authority of the ruling Cao family dramatically weakened following the deposition and execution of Cao Shuang, a regent for the dynasty's third emperor Cao Fang. Beginning in 249, another regent in Sima Yi gradually consolidated state authority for himself and his relatives, with the last Wei emperors largely being puppets of the Sima family. In 266, Sima Yi's grandson Sima Yan forced Emperor Yuan to abdicate, proclaiming himself to be emperor of the newly established Jin dynasty; he would be posthumously known as Emperor Wu (of Jin).

HistoryEdit

Template:More citations needed

Beginnings and foundingEdit

Template:See also

Towards the end of the Eastern Han dynasty, northern China came under the control of Cao Cao, the chancellor to the last Han ruler, Emperor Xian. In 213, Emperor Xian granted Cao Cao the title of "Duke of Wei" (魏公) and gave him ten cities as his dukedom. The area was named "Wei". At that time, the southern part of China was divided into two areas controlled by two other warlords, Liu Bei and Sun Quan. In 216, Emperor Xian promoted Cao Cao to the status of a vassal king – "King of Wei (魏王)".

Cao Cao died on 15 March 220 and his vassal king title was inherited by his son Cao Pi. Later that year, on 11 December, Cao Pi forced Emperor Xian to abdicate in his favour and took over the throne, establishing the state of Wei. However, Liu Bei immediately contested Cao Pi's claim to the Han throne and declared himself "Emperor of Han" a year later. Sun Quan was nominally a vassal king under Wei, but he declared independence in 222 and eventually proclaimed himself "Emperor of Wu" in 229.Template:Citation needed

To distinguish the state from other historical Chinese states of the same name, historians have added a relevant character to the state's original name: the state that called itself "Wei" (魏) is also known as "Cao Wei" (曹魏)Template:Citation needed

Reigns of Cao Pi and Cao RuiEdit

Cao Pi ruled for six years until his death on 29 June 226<ref>([黃初七年五月]丁巳,帝崩于嘉福殿,時年四十。) Sanguozhi, vol. 02</ref> and was succeeded by his son, Cao Rui, who ruled until his death on 22 January 239.<ref>([景初三年]春正月丁亥,....即日,帝崩于嘉福殿.) Sanguozhi, vol.3</ref> Throughout the reigns of Cao Pi and Cao Rui, Wei had been fighting numerous wars with its two rival states – Shu and Wu.Template:Citation needed

Between 228 and 234, Zhuge Liang, the Shu chancellor and regent, led a series of five military campaigns to attack Wei's western borders (within present-day Gansu and Shaanxi), with the aim of conquering Chang'an, a strategic city which lay on the road to the Wei capital, Luoyang.Template:Citation needed The Shu invasions were repelled by the Wei armies led by the generals Cao Zhen, Sima Yi, Zhang He and others; Shu did not make any significant gains in the expeditions.Template:Citation needed

On its southern and eastern borders, Wei engaged Wu in a series of armed conflicts throughout the 220s and 230s, including the battles of Dongkou (222–223), Jiangling (223) and Shiting (228).Template:Citation needed However, most of the battles resulted in stalemate and neither side managed to significantly expand its territory.Template:Citation needed

Sima Yi's Liaodong CampaignEdit

{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}

After Guanqiu Jian failed to subjugate the Gongsun clan of the Liaodong Commandery,<ref>Template:Cite book</ref> it was Sima Yi who, in June 238, as the Grand Commandant (太尉), launched an invasion with 40,000 troops at the behest of Emperor Cao Rui against Liaodong,<ref>Template:Cite book</ref> which at this point had been firmly rooted under Gongsun control for 4 decades. After a three-month long siege, involving some assistance from the Goguryeo Kingdom, Sima Yi managed to capture the capital city of Xiangping, resulting in the conquest of the commandery by late September of the same year.<ref>Template:Cite book</ref>

Goguryeo–Wei WarsEdit

{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}

Around that time, as the Korean kingdom Goguryeo consolidated its power, it proceeded to conquer the territories on the Korean peninsula which were under Chinese rule.<ref name=tennant>Template:Cite book</ref> Goguryeo initiated the Goguryeo–Wei Wars in 242, trying to cut off Chinese access to its territories in Korea by attempting to take a Chinese fort. However, Wei responded by invading and defeated Goguryeo. Hwando was destroyed in a reprisal raid by Wei forces in 244.<ref name=tennant/> The invasions sent its king fleeing, and broke the tributary relationships between Goguryeo and the other tribes of Korea that formed much of Goguryeo's economy. Although the king evaded capture and eventually settled in a new capital, Goguryeo was reduced to such insignificance that for half a century there was no mention of the state in Chinese historical texts.<ref name="byington93">Byington, Mark E. "Control or Conquer? Koguryŏ's Relations with States and Peoples in Manchuria," Journal of Northeast Asian History volume 4, number 1 (June 2007):93.</ref>

Fall of WeiEdit

Template:Further

File:Celadon standing man figure, Haidian Museum, Wei Dynasty.jpg
Celadon standing figures, Haidian Museum, Cao Wei Dynasty.

In 249, during the reign of Cao Rui's successor, Cao Fang, the regent Sima Yi seized state power from his co-regent, Cao Shuang, in a coup. This event marked the collapse of imperial authority in Wei, as Cao Fang's role had been reduced to that of a puppet ruler while Sima Yi wielded state power firmly in his hands. Wang Ling, a Wei general, tried to rebel against Sima Yi, but was swiftly dealt with, and took his own life. Sima Yi died on 7 September 251,<ref>([嘉平三年]秋八月戊寅,崩于京师,时年七十三。) Jin Shu, vol.01</ref> passing on his authority to his eldest son, Sima Shi, who continued ruling as regent.Template:Citation needed

Sima Shi deposed Cao Fang in 254, on grounds of planning to stage a rebellion, and replaced him with Cao Mao. In response, Guanqiu Jian and Wen Qin staged a rebellion, but were crushed by Sima Shi in an event that nevertheless took a heavy toll on Sima Shi's health, having undergone eye surgery prior to the insurrection, causing him to die on 23 March 255,<ref>([正元二年]闰月疾笃,使文帝总统诸军。辛亥,崩于许昌,时年四十八。) Jin Shu, vol.02</ref> but not before handing his power and regency over to his younger brother, Sima Zhao.Template:Citation needed

In 258, Sima Zhao quelled Zhuge Dan's rebellion, marking an end to what are known as the Three Rebellions in Shouchun. In 260, Cao Mao attempted to seize back state power from Sima Zhao in a coup, but was killed by Cheng Ji, a military officer who was serving under Jia Chong, a subordinate to the Simas. After Cao Mao's death, Cao Huan was enthroned as the fifth ruler of Wei. However, Cao Huan was also a mere figurehead under Sima Zhao's control, much like his predecessor. In 263, Wei armies led by Zhong Hui and Deng Ai conquered Shu. Afterwards, Zhong Hui and former Shu general Jiang Wei grouped and plotted together in order to oust Sima Zhao from power, however, various Wei officials turned against them when it was found out that Jiang Wei had urged Zhong Hui to get rid of these officials before the planned coup. Sima Zhao himself received and finally accepted the nine bestowals and the title Duke of Jin in 263, and was further bestowed with the title King of Jin by Cao Huan in 264, but he died on 6 September 265,<ref>([咸熙二年]秋八月辛卯,帝崩于露寝,时年五十五。) Jin Shu, vol.02</ref> leaving the final step of usurpation up to his eldest son, Sima Yan.Template:Citation needed

On 4 February 266, Sima Zhao's son, Sima Yan, forced Cao Huan to abdicate in his favor, replacing Wei with the Jin dynasty on 8 February 266.Template:Efn Cao Huan himself was spared, though, and continued to live until 302, before dying.<ref>(年五十八,太安元年崩...) Wei Shi Pu annotation in Sanguozhi, vol. 04. The year corresponds to 14 Feb 302 to 02 Feb 303 in the Julian calendar.</ref>

GovernmentEdit

The system of government in Wei inherited many aspects from that of the Eastern Han dynasty. During his reign, Cao Pi established two separate government bodies – the Central Inspectorate (中書監) and the Mobile Imperial Secretariat (行尚書臺) – to reduce the authority of the Imperial Secretariat (尚書臺) and consolidate the power of the central government.Template:Citation needed

During this time, the minister Chen Qun developed the nine-rank system for civil service nomination, which was adopted by later dynasties until it was superseded by the imperial examination system in the Sui dynasty.Template:Citation needed

Cao Pi felt that the Han dynasty collapsed because the Governors (州牧) of the various provinces wielded too much power and fell outside the control of the central government. He reduced the role of a Governor to that of an Inspector (刺史), and permitted the Inspectors to administer only civil affairs in their respective provinces, while military affairs were handled by military personnel based in regional offices or in the capital.Template:Citation needed

Cao Wei society was feudalized and vassalized. When China was divided in the Period of Disunion, south and north were economically and socially dominated by an aristocratic hereditary class enshrined in law, who were exempt from conscript labor, special kinds of taxes, had legal immunities and other privileges. This situation was created by Cao Wei with rigid social stratification backed by law between shu (庶) (commoner) households and shi (士) (noble) households in the Nine ranks system which was created by Cao Wei and enabled hereditary officeholding by the aristocratic magnate families. Magnates took in farming families and war refugees into their fortress villages as ke (客) (private clients) and as buqu (military retainers) who made up their private militias. These magnates were rich landowners and local warlords and their economic and social power only grew at this time. The military retainers stayed own as private agricultural laborers bonded to the magnate families even after war ended. They did not contribute any labor service or taxes to the central government while their magnate lord received 50% or more of their grain harvest. They effectively were bondservants to their lords.<ref>Template:Cite book</ref>

CultureEdit

The kaishu style of Chinese calligraphy was developed at some time between the late Eastern Han dynasty and the Cao Wei dynasty, as well as the Jian'an poetry style. The first known master of the former was Zhong Yao, an official of Wei,<ref>Qiu Xigui (2000). Chinese Writing. Translated by Mattos and Jerry Norman. Early China Special Monograph Series No. 4. Berkeley: The Society for the Study of Early China and the Institute of East Asian Studies, University of California, Berkeley. Template:ISBN, pp. 142–143</ref> of the latter; Cao Cao's son, Cao Zhi.Template:Citation needed

Since the beginning of the Cao Wei dynasty, finding their roots in Cao Cao's administrative influences, intellectual constraints were relaxed, leading to the formation of new groups of intellectuals, such as the Seven Sages of the Bamboo Grove. These intellectual freedoms were overturned by the time of the Jin dynasty (it was Sima Yi himself who associated with the orthodox Confucianists, who despised these new intellectual groups, and therefore were more willing to offer their support to the Sima clan).Template:Citation needed

Ruling classEdit

According to the Book of Wei by Wang Chen, the Cao family descended from the Yellow Emperor through his grandson Zhuanxu. They were of the same lineage as Emperor Shun. Another account says that the Cao family descended from Emperor Shun. This account was attacked by Jiang Ji, who claimed that those with the family name "Tian" descended from Shun, but not those surnamed "Cao".<ref>While Chen Shou only briefly mentioned in Jiang Ji's biography in Sanguozhi that Jiang had a debate with Gaotang Long over the lineage of the Cao clan ([初,侍中高堂隆论郊祀事,以魏为舜后,推舜配天。济以为舜本姓妫,其苗曰田,非曹之先,著文以追诘隆。] Sanguozhi, vol.14), Pei Songzhi included more material and gave his opinion in his annotations to Jiang Ji's biography (〈臣松之案蒋济立郊议称《曹腾碑》文云“曹氏族出自邾”,《魏书》述曹氏胤绪亦如之。魏武作家传,自云曹叔振铎之后。故陈思王作武帝诔曰:“于穆武皇,胄稷胤周。”此其不同者也。及至景初,明帝从高堂隆议,谓魏为舜后,后魏为禅晋文,称“昔我皇祖有虞”,则其异弥甚。寻济难隆,及与尚书缪袭往反,并有理据,文多不载。济亦未能定氏族所出,但谓“魏非舜后而横祀非族,降黜太祖,不配正天,皆为缪妄”。然于时竟莫能正。 济又难:郑玄注《祭法》云“有虞以上尚德,禘郊祖宗,配用有德,自夏已下,稍用其姓氏。”济曰:“夫虬龙神于獭,獭自祭其先,不祭虬龙也。骐𬴊白虎仁于豺,豺自祭其先,不祭骐虎也。如玄之说,有虞已上,豺獭之不若邪?臣以为祭法所云,见疑学者久矣,郑玄不考正其违而就通其义。”济豺獭之譬,虽似俳谐,然其义旨,有可求焉。)</ref> He also claimed that "Gui" (媯) was Emperor Shun's family name.<ref>Template:Cite book</ref>

List of territoriesEdit

Province Commanderies and Kingdoms/Principalities
You Fanyang (范陽), Dai (代), Yuyang (漁陽), Youbeiping (右北平), Liaoxi (遼西), Lelang (樂浪), Shanggu (上谷), Yan (principality) (燕國), Changli (昌黎), Xuantu (玄菟), Liaodong (遼東), Daifang (帶方)
Ji Wei (魏), Yangping (陽平), Guangping (廣平), Qinghe (清河), Julu (鉅鹿), Zhao (principality) (趙國), Changshan (常山), Anping (安平), Pingyuan (平原), Leling (principality) (樂陵), Hejian (河間), Bohai (渤海), Zhongshan (principality) (中山國)
Qing Chengyang (城陽), Donglai (東萊), Beihai (principality) (北海國), Qi (principality) (齊國), Le'an (樂安), Jinan (principality) (濟南國)
Bing Shangdang (上黨), Xihe (西河), Taiyuan (太原), Leping (樂平), Xinxing (新興), Yanmen (雁門)
Si Henan (河南尹), Hongnong (弘農), Henei (河內), Hedong (河東), Pingyang (平陽)
Yan Taishan (泰山), Jibei (principality) (濟北國), Dongping (principality) (東平國), Dong (東), Rencheng (任城), Shanyang (山陽), Jiyin (濟陰), Chenliu (principality) (陳留國)
Xu Dongguan (東莞), Langye (principality) (琅琊國), Donghai (principality) (東海國), Guangling (廣陵), Xiapi (下邳), Pengcheng (principality) (彭城國)
Yong Jingzhao (京兆), Pingyi (馮翊), Fufeng (扶風), Beidi (北地), Xinping (新平), Anding (安定), Guangwei (廣魏), Tianshui (天水), Nan'an (南安), Longxi (隴西)
Yu Chen (陳), Yingchuan (潁川), Runan (汝南), Liang (principality) (梁國), Pei (principality) (沛國), Qiao (譙), Lu (魯), Yiyang (弋陽), Anfeng (安豐)
Liang Wuwei (武威), Jincheng (金城), Xiping (西平), Zhangye (張掖), Jiuquan (酒泉), Xihai (西海), Dunhuang (敦煌)
Yan Huainan (淮南), Lujiang (廬江)
Jing Jiangxia (江夏), Xiangyang (襄陽), Xincheng (新城), Nanyang (南陽), Nanxiang (南鄉), Shangyong (上庸), Weixing (魏興), Zhangling (Yiyang) (章陵 / 義陽)

List of sovereignsEdit

Template:Anchor

Cao Wei rulers
Temple name Posthumous name Family name (in bold) and personal name Reign Era names and their year ranges Notes
(N/A) Emperor Gao
高皇帝
Cao Teng
曹騰
(N/A) (N/A) Cao Teng's posthumous name was granted posthumously by Cao Rui.
(N/A) Emperor Tai
太皇帝
Cao Song
曹嵩
(N/A) (N/A) Cao Song's posthumous name was granted posthumously by Cao Pi.
Taizu
太祖
Emperor Wu
武皇帝
Cao Cao
曹操
216–220 (N/A) Cao Cao's temple and posthumous names were granted posthumously by Cao Pi.
Shizu
世祖
Emperor Wen
文皇帝
Cao Pi
曹丕
220–226
Liezu
烈祖
Emperor Ming
明皇帝
Cao Rui
曹叡
227–239 Cao Rui took the unprecedented step of deciding his own temple name.
(N/A) (N/A) Cao Fang
曹芳
240–249 Cao Fang became "Prince of Qi" (齊王) after his dethronement. He was posthumously granted the title "Duke Li of Shaoling" (邵陵厲公) in the Western Jin dynasty.
(N/A) (N/A) Cao Mao
曹髦
254–260 Cao Mao was granted the posthumous name of "Duke of Gaogui" (高貴鄉公).
(N/A) Emperor Yuan
元皇帝
Cao Huan
曹奐
260–266

Cao Wei family treeEdit

{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}

Template:Cao Wei rulers family tree

See alsoEdit

NotesEdit

Template:Notelist

ReferencesEdit

Template:Reflist

Further readingEdit

Template:Three Kingdoms Template:People of Cao Wei