The political and territorial entity known today as China emerged through a series of distinct consolidations spanning more than three millennia, each building on patterns of agricultural settlement along the Yellow River and Yangtze River valleys. Archaeological evidence from the Erlitou culture places urban settlements in the Yellow River basin by 1900 BCE, establishing grain agriculture and bronze metallurgy as the economic foundations of hierarchical societies. The Shang dynasty, documented through oracle bone inscriptions discovered near Anyang, ruled from approximately 1600 to 1046 BCE and developed a writing system whose characters form the direct ancestor of modern Chinese script. The Zhou dynasty overthrew the Shang in 1046 BCE and introduced the Mandate of Heaven, a political doctrine asserting that rulers governed by divine right contingent on just administration, a concept that influenced governance legitimacy for the next two thousand years.
The Zhou maintained nominal control until 771 BCE, after which the Eastern Zhou period fragmented into competing states whose constant warfare between 475 and 221 BCE is documented as the Warring States period. During this era of political fragmentation, Confucius formulated his ethical and political philosophy in the state of Lu around 500 BCE, compiling teachings that emphasized hierarchical relationships, ritual propriety, and the cultivation of virtue in rulers. His contemporary Laozi, a figure whose historical existence remains debated but whose attributed text the Daodejing dates to the fourth century BCE, articulated a philosophy centered on living in accordance with the natural order. These competing philosophical schools emerged directly from the political instability of the period, offering different solutions to the problem of social order.
Qin Shi Huang, king of the state of Qin, completed the military conquest of the six rival states in 221 BCE and declared himself the First Emperor, establishing the first centralized imperial administration over a territory stretching from the Ordos Desert to the South China Sea. His government standardized weights, measures, currency, and the writing system, imposing uniformity across territories that had developed distinct administrative practices. The emperor ordered the construction of defensive walls along the northern frontier, connecting and extending earlier fortifications built by individual states into a system that would later be expanded into the structure known as the Great Wall. He also initiated construction of his mausoleum near modern Xi'an, where excavations beginning in 1974 uncovered more than 8,000 life-sized terracotta warriors arranged in military formation. The Qin dynasty collapsed in 206 BCE, four years after Qin Shi Huang's death, due to widespread rebellion against harsh legal codes and massive labor conscription.
Liu Bang, a low-ranking official who led one of the rebel factions, established the Han dynasty in 202 BCE and ruled as Emperor Gaozu until 195 BCE. The Han dynasty, which continued with one brief interruption until 220 CE, consolidated the bureaucratic structure initiated by the Qin but replaced strict legalism with Confucian principles as the ideological foundation of the state. Emperor Wu, who reigned from 141 to 87 BCE, established Confucian classics as the basis for civil service examinations, creating a meritocratic system for selecting officials that persisted in various forms until 1905. During his reign, the Han expanded westward into the Tarim Basin and southward into territories that are now Guangdong and Guangxi provinces, while diplomatic and trade missions reached as far as Bactria and Parthia, establishing the network of overland trade routes later termed the Silk Road. The historian Sima Qian completed the Records of the Grand Historian around 94 BCE, establishing a biographical and annalistic format that became the model for official dynastic histories.
The Han dynasty fragmented into three competing kingdoms in 220 CE, initiating nearly four centuries of division during which northern China came under the control of non-Han peoples migrating from the steppe regions. The Sui dynasty briefly reunified the territory in 589 CE and undertook massive infrastructure projects including the Grand Canal, which connected the Yellow River and Yangtze River systems to enable grain transport from the agricultural south to the political centers in the north. The Tang dynasty, established in 618 CE and lasting until 907 CE, presided over a period of territorial expansion, commercial prosperity, and cultural production documented in poetry collections that became canonical. The Tang capital Chang'an, located near modern Xi'an, grew to a population exceeding one million according to census records from 742 CE, making it the largest city in the world at that time. The dynasty maintained a cosmopolitan administrative elite that included officials from Central Asian and Persian backgrounds, while Buddhist monasteries, having arrived via the Silk Road beginning in the first century CE, accumulated extensive landholdings and economic power.
The Song dynasty, established in 960 CE after another period of fragmentation, never recovered the full territorial extent of the Tang and lost control of northern China to the Jurchen Jin dynasty in 1127 CE, forcing the Song court to relocate to Hangzhou. Despite territorial contraction, the Song period saw significant technological and economic development including the widespread use of woodblock printing, the invention of movable type by Bi Sheng around 1040 CE, and the adoption of paper currency by the government in the twelfth century. Song China developed a monetized economy supported by maritime trade through ports including Quanzhou and Guangzhou, which connected to Southeast Asian and Indian Ocean trade networks. The population increased substantially, with estimates placing the total above 100 million by 1100 CE based on tax registration records. Neo-Confucian philosophers including Zhu Xi, who lived from 1130 to 1200 CE, synthesized earlier Confucian ethics with metaphysical concepts to create an orthodox interpretation that became the basis for civil service examinations during subsequent dynasties.
Mongol armies under Genghis Khan breached the Great Wall defenses in 1211 CE and conquered northern China over the following two decades, while Genghis Khan's grandson Kublai Khan completed the conquest of the Song dynasty in 1279 CE, establishing the Yuan dynasty with its capital at Dadu, modern Beijing. The Yuan administration, lasting until 1368 CE, maintained a hierarchy that placed Mongols at the top, followed by other Central Asian groups, northern Chinese, and finally southern Chinese, who faced restrictions on official appointments and weapons ownership. Kublai Khan sponsored maritime expeditions and maintained the Mongol postal relay system, while Marco Polo, who claimed to have served in the Yuan administration from 1275 to 1291 CE, provided detailed accounts of Chinese cities, administration, and technology that circulated widely in Europe. The Yuan period saw the expansion of drama and vernacular literature, as educated Chinese excluded from official positions turned to alternative forms of cultural production.
Zhu Yuanzhang, a former Buddhist monk and military commander, expelled the Mongol Yuan court and established the Ming dynasty in 1368 CE, ruling as the Hongwu Emperor until 1398 CE. The Ming relocated the capital to Nanjing before Emperor Yongle, who ruled from 1402 to 1424 CE, moved it permanently to Beijing and initiated construction of the Forbidden City, completed in 1420 CE. Emperor Yongle commissioned Admiral Zheng He to lead seven maritime expeditions between 1405 and 1433 CE, commanding fleets that included ships exceeding 120 meters in length according to contemporary records. These expeditions reached the coasts of Southeast Asia, India, Arabia, and East Africa, establishing tributary relationships and conducting trade, but the government discontinued large-scale maritime ventures after 1433 CE and focused resources on northern frontier defense. The Ming reconstructed and extended the Great Wall to its current form, building the brick and stone fortifications that remain standing, particularly in sections near Beijing. The dynasty imposed strict regulations on maritime commerce in the sixteenth century, though smuggling and piracy continued along the coast, while silver from Japanese mines and later from the Americas flowed into China through trade, monetizing the economy.
The Manchu people from northeast of the Great Wall established the Qing dynasty in 1644 CE after Ming general Wu Sangui opened the gates at Shanhai Pass to allow Manchu armies to enter and suppress peasant rebels who had captured Beijing. The Qing emperors adopted Chinese administrative structures while maintaining a separate Manchu identity through language preservation, designated military units, and restrictions on intermarriage. Emperor Kangxi, who reigned from 1661 to 1722 CE, consolidated control over southern China and conquered the Kingdom of Tungning on Taiwan Island in 1683 CE, while Emperor Qianlong, who ruled from 1735 to 1796 CE, extended Qing authority into Xinjiang and imposed protectorate status on Tibet. The Qing expanded China's territory to its greatest historical extent, governing a multi-ethnic empire that included Mongol, Tibetan, and Turkic populations. The Qing imposed the queue hairstyle on Han Chinese men as a sign of submission and restricted Han settlement in Manchuria to preserve it as a Manchu homeland.
Population growth accelerated during the Qing period, with estimates rising from approximately 150 million in 1700 CE to over 400 million by 1850 CE, straining agricultural resources and generating social instability. The Qing government attempted to restrict foreign trade to the port of Guangzhou and required it to pass through licensed merchant guilds, creating friction with European trading companies seeking broader access. The British East India Company's importation of opium from India into China increased dramatically in the early nineteenth century, reversing China's trade surplus and prompting the Qing government to ban opium imports in 1839 CE. Commissioner Lin Zexu's destruction of opium stockpiles in Guangzhou precipitated the First Opium War from 1839 to 1842 CE, which ended with China's defeat and the Treaty of Nanjing. This treaty ceded Hong Kong Island to Britain, opened five ports to foreign trade, and established the principle of extraterritoriality for foreign nationals. A Second Opium War from 1856 to 1860 CE resulted in additional territorial concessions and the opening of more ports, while foreign powers established settlement areas with autonomous administration in Shanghai and other cities.
The Taiping Rebellion, led by Hong Xiuquan who claimed to be the younger brother of Jesus Christ, erupted in 1850 CE and controlled large portions of southern China including Nanjing, which served as the rebellion's capital from 1853 to 1864 CE. The conflict lasted fourteen years and caused an estimated 20 to 30 million deaths through combat, disease, and famine, making it one of the deadliest wars in human history. Qing forces, assisted by regional armies and foreign military advisors, finally suppressed the rebellion in 1864 CE, but the dynasty never fully recovered its authority. Subsequent uprisings including the Nian Rebellion from 1851 to 1868 CE and the Muslim rebellions in Yunnan and the northwest further depleted imperial resources. The Qing government initiated the Self-Strengthening Movement starting in the 1860s, attempting to adopt Western military technology and industrial methods while preserving Confucian social and political values, but these efforts produced limited results.
China's defeat in the First Sino-Japanese War from 1894 to 1895 CE, which resulted in the loss of Taiwan and the Penghu Islands to Japan, demonstrated that modernization efforts had failed to create a military capable of defending against industrialized powers. The Hundred Days' Reform in 1898 CE, initiated by the Guangxu Emperor under the influence of reformist scholars, attempted radical administrative and educational changes but was reversed after 103 days by Empress Dowager Cixi, who placed the emperor under house arrest. The Boxer Rebellion of 1899 to 1901 CE, an anti-foreign uprising supported initially by Cixi, ended with the occupation of Beijing by an eight-nation military coalition and the imposition of a massive indemnity. The Qing government finally abolished the civil service examination system in 1905 CE and announced plans for constitutional reforms, but these measures came too late to preserve the dynasty's legitimacy.
Sun Yat-sen, a Western-educated physician who had organized revolutionary societies since the 1890s, articulated a republican ideology centered on nationalism, democracy, and people's livelihood. An army mutiny in Wuchang on October 10, 1911 CE, sparked a rapid cascade of provincial declarations of independence from the Qing, and Sun Yat-sen returned from abroad to be inaugurated as provisional president of the Republic of China on January 1, 1912 CE. He ceded the presidency to Yuan Shikai, a former Qing military commander, in exchange for Yuan's negotiation of the abdication of the six-year-old Puyi, the last Qing emperor, which occurred on February 12, 1912 CE. Yuan Shikai attempted to establish a new dynasty with himself as emperor in 1915 CE but faced immediate military opposition and died in 1916 CE, after which the Republic fractured as regional military commanders established autonomous control over provinces and engaged in shifting alliances known as the Warlord Era.
Sun Yat-sen established a rival government in Guangzhou in 1917 CE and reorganized his political party into the Kuomintang with Soviet assistance, while the Chinese Communist Party formed in Shanghai in 1921 CE with Chen Duxiu as its first general secretary. The Kuomintang and Communist Party formed a United Front in 1923 CE to oppose the warlords, and the Northern Expedition launched from Guangzhou in 1926 CE succeeded in bringing most of China under Kuomintang control by 1928 CE. Sun Yat-sen died in 1925 CE, and Chiang Kai-shek emerged as the Kuomintang's military leader and subsequently its political head. Chiang purged Communists from the United Front in April 1927 CE, executing thousands in Shanghai and other cities, initiating a civil war that continued intermittently for the next two decades. The Communist Party established rural base areas in Jiangxi province under Mao Zedong's leadership, implementing land redistribution and guerrilla warfare tactics. Kuomintang military campaigns forced the Communists to evacuate Jiangxi in October 1934 CE, beginning the Long March, a strategic retreat covering approximately 9,000 kilometers that lasted until October 1935 CE and established a new base in Yan'an in Shaanxi province. The original force of 86,000 was reduced to fewer than 8,000 survivors upon arrival in Shaanxi, but the march became a foundational narrative in Communist Party ideology.
Japan invaded Manchuria in 1931 CE and established the puppet state of Manchukuo with Puyi as nominal emperor, then launched a full-scale invasion of China in July 1937 CE. The Kuomintang and Communist Party formed a Second United Front against Japan, though cooperation remained limited and both sides preserved their separate military forces. The Japanese military captured Nanjing in December 1937 CE and conducted systematic massacres and sexual violence over six weeks that killed an estimated 200,000 to 300,000 civilians and prisoners of war according to verdicts of the International Military Tribunal for the Far East. The Kuomintang government relocated to Chongqing, which served as the wartime capital and endured sustained Japanese bombing. The Communist Party expanded its territorial control in northern China during the war while implementing political indoctrination campaigns in Yan'an. Japan's surrender in August 1945 CE ended the occupation but resumed the civil war between the Kuomintang and Communist Party.
The Communist People's Liberation Army won decisive victories in 1948 and 1949 CE, capturing Beijing in January 1949 CE and crossing the Yangtze River in April 1949 CE to take Nanjing and Shanghai. Mao Zedong proclaimed the establishment of the People's Republic of China on October 1, 1949 CE, in Beijing, while the Kuomintang government under Chiang Kai-shek retreated to Taiwan Island, where it maintained itself as the Republic of China and claimed to be China's legitimate government. The People's Republic government, led by Mao Zedong as Chairman of the Communist Party and Zhou Enlai as Premier, implemented rapid nationalization of industry and collectivization of agriculture beginning in 1953 CE through a series of Five-Year Plans modeled on Soviet practices. The government organized agricultural land into collective farms and suppressed political opposition through campaigns including the Anti-Rightist Campaign of 1957 CE, which resulted in approximately 500,000 intellectuals being labeled rightists and sent to labor camps or rural areas.
Mao launched the Great Leap Forward in 1958 CE, an economic and social campaign aimed at rapidly transforming China from an agrarian economy into a socialist society through rapid industrialization and collectivization. The government organized rural collectives into larger People's Communes and mandated backyard steel production quotas, while cadres reported inflated grain production figures to demonstrate success. The combination of unrealistic production targets, the diversion of labor from agriculture, poor weather, and the withdrawal of Soviet technical assistance created a famine lasting from 1959 to 1961 CE that caused an estimated 15 to 55 million deaths according to various demographic studies based on census data. The government abandoned the most extreme policies of the Great Leap Forward by 1962 CE, and officials including Liu Shaoqi and Deng Xiaoping implemented more pragmatic economic policies.