Qing dynasty (Great qing *officialy*)

Names
le: Names of the Qing dynastyHong Taiji named the Great Qing dynasty in 1636. There are competing explanations on the meaning of Qīng (lit. "clear" or "pure"). The name may have been selected in reaction to the name of the Ming dynasty (明), which consists of the Chinese characters for "sun" (日) and "moon" (月), both associated with the fire element of the Chinese zodiacal system. The character Qīng (清) is composed of "water" (氵) and "azure" (青), both associated with the water element. This association would justify the Qing conquest as defeat of fire by water. The water imagery of the new name may also have had Buddhist overtones of perspicacity and enlightenment and connections with the Bodhisattva Manjusri. The Manchu name daicing, which sounds like a phonetic rendering of Dà Qīng or Dai Ching, may in fact have been derived from a Mongolian word "ᠳᠠᠢᠢᠴᠢᠨ, дайчин" that means "warrior". Daicing gurun may therefore have meant "warrior state", a pun that was intelligible only to Manchu and Mongol people. In the later part of the dynasty, however, even the Manchus themselves had forgotten this possible meaning.

Early European writers used the term "Tartar" indiscriminately for all the peoples of Northern Eurasia but in the 17th century Catholic missionary writings established "Tartar" to refer only to the Manchus and "Tartary" for the lands they ruled.

After conquering "China proper", the Manchus identified their state as "China" (中國, Zhōngguó; "Middle Kingdom"), and referred to it as Dulimbai Gurun in Manchu (Dulimbai means "central" or "middle," gurun means "nation" or "state"). The emperors equated the lands of the Qing state (including present-day Northeast China, Xinjiang, Mongolia, Tibet and other areas) as "China" in both the Chinese and Manchu languages, defining China as a multi-ethnic state, and rejecting the idea that "China" only meant Han areas. The Qing emperors proclaimed that both Han and non-Han peoples were part of "China". They used both "China" and "Qing" to refer to their state in official documents. In the Chinese-language versions of its treaties and its maps of the world, the Qing government used "Qing" and "China" interchangeably.

In English language texts, the Qing dynasty is sometimes known as the "Manchu dynasty" and the "Manchu dynasty of China" based on the ethnicity of its monarchs. It is also sometimes rendered as "Ch'ing dynasty" in the Wade–Giles romanization.

Formation of the Manchu state
The Qing dynasty was founded not by Han Chinese, who constitute the majority of the Chinese population, but by the Manchu, descendants of a sedentary farming people known as the Jurchen, a Tungusic people who lived around the region now comprising the Chinese provinces of Jilin and Heilongjiang. The Manchus are sometimes mistaken for a nomadic people, which they were not.

Nurhaci
What was to become the Manchu state was founded by Nurhaci, the chieftain of a minor Jurchen tribe – the Aisin-Gioro – in Jianzhou in the early 17th century. Nurhaci may have spent time in a Chinese household in his youth, and became fluent in Chinese as well as Mongol, and read the Chinese novels Romance of the Three Kingdoms and Water Margin. Originally a vassal of the Ming emperors, Nurhaci embarked on an intertribal feud in 1582 that escalated into a campaign to unify the nearby tribes. By 1616, he had sufficiently consolidated Jianzhou so as to be able to proclaim himself Khan of the Great Jin in reference to the previous Jurchen dynasty.

Two years later, Nurhaci announced the "Seven Grievances" and openly renounced the sovereignty of Ming overlordship in order to complete the unification of those Jurchen tribes still allied with the Ming emperor. After a series of successful battles, he relocated his capital from Hetu Ala to successively bigger captured Ming cities in Liaodong: first Liaoyang in 1621, then Shenyang (Manchu: Mukden) in 1625.

Furthermore, the Khorchin proved a useful ally in the war, lending the Jurchens their expertise as cavalry archers. To guarantee this new alliance, Nurhaci initiated a policy of inter-marriages between the Jurchen and Khorchin nobilities, while those who resisted were met with military action. This is a typical example of Nurhaci's initiatives that eventually became official Qing government policy. During most of the Qing period, the Mongols gave military assistance to the Manchus.

Hong Taiji
Nurhaci died in 1626, and was succeeded by his eighth son, Hong Taiji. Although Hong Taiji was an experienced leader and the commander of two Banners, the Jurchens suffered defeat in 1627, in part due to the Ming's newly acquired Portuguese cannons. To redress the technological and numerical disparity, Hong Taiji in 1634 created his own artillery corps from his existing Han troops, who cast their own cannons in the European design with the help of defector Chinese metallurgists. One of the defining events of Hong Taiji's reign was the official adoption of the name "Manchu" for the united Jurchen people in November 1635. In 1635, the Manchus' Mongol allies were fully incorporated into a separate Banner hierarchy under direct Manchu command. In April 1636, Mongol nobility of Inner Mongolia, Manchu nobility and the Han mandarin recommended that Hong as the khan of Later Jin should be the emperor of the Great Qing empire. When he was presented with the imperial seal of the Yuan dynasty after the defeat of the last Khagan of the Mongols, Hong Taiji renamed his state from "Great Jin" to "Great Qing" and elevated his position from Khan to Emperor, suggesting imperial ambitions beyond unifying the Manchu territories. Hong Taiji then proceeded to invade Korea again in 1636.

Meanwhile, Hong Taiji set up a rudimentary bureaucratic system based on the Ming model. He established six boards or executive level ministries in 1631 to oversee finance, personnel, rites, military, punishments, and public works. However, these administrative organs had very little role initially, and it was not until the eve of completing the conquest ten years later that they fulfilled their government roles.

Hong Taiji staffed his bureaucracy with many Han Chinese, including newly surrendered Ming officials, but ensured Manchu dominance by an ethnic quota for top appointments. Hong Taiji's reign also saw a fundamental change of policy towards his Han Chinese subjects. Nurhaci had treated Han in Liaodong according to how much grain they had: those with less than 5 to 7 sin were treated badly, while those with more were rewarded with property. Due to a Han revolt in 1623, Nurhaci, turned against them and ordered that they no longer be trusted and enacted discriminatory policies and killings against them. He ordered that Han who assimilated to the Jurchen (in Jilin) before 1619 be treated equally with Jurchens, not like the conquered Han in Liaodong. Hong Taiji recognized the need to attract Han Chinese, explaining to reluctant Manchus why he needed to treat the Ming defector General Hong Chengchou leniently. Hong Taiji incorporated Han into the Jurchen "nation" as full (if not first-class) citizens, obligated to provide military service. By 1648, less than one-sixth of the bannermen were of Manchu ancestry.

Claiming the Mandate of Heaven
Hong Taiji died suddenly in September 1643. As the Jurchens had traditionally "elected" their leader through a council of nobles, the Qing state did not have a clear succession system. The leading contenders for power were Hong Taiji's oldest son Hooge and Hong Taiji's half brother Dorgon. A compromise installed Hong Taiji's five-year-old son, Fulin, as the Shunzhi Emperor, with Dorgon as regent and de facto leader of the Manchu nation.

Meanwhile, Ming government officials fought against each other, against fiscal collapse, and against a series of peasant rebellions. They were unable to capitalise on the Manchu succession dispute and the presence of a minor as emperor. In April 1644, the capital, Beijing, was sacked by a coalition of rebel forces led by Li Zicheng, a former minor Ming official, who established a short-lived Shun dynasty. The last Ming ruler, the Chongzhen Emperor, committed suicide when the city fell to the rebels, marking the official end of the dynasty.

Li Zicheng then led rebel forces numbering some 200,000 to confront Wu Sangui, at Shanhai Pass, a key pass of the Great Wall, which defended the capital. Wu Sangui, caught between a Chinese rebel army twice his size and a foreign enemy he had fought for years, cast his lot with the familiar Manchus. Wu Sangui may have been influenced by Li Zicheng's mistreatment of wealthy and cultured officials, including Li's own family; it was said that Li took Wu's concubine Chen Yuanyuan for himself. Wu and Dorgon allied in the name of avenging the death of the Chongzhen Emperor. Together, the two former enemies met and defeated Li Zicheng's rebel forces in battle on May 27, 1644.

The newly allied armies captured Beijing on 6 June. The Shunzhi Emperor was invested as the "Son of Heaven" on 30 October. The Manchus, who had positioned themselves as political heirs to the Ming emperor by defeating Li Zicheng, completed the symbolic transition by holding a formal funeral for the Chongzhen Emperor. However, conquering the rest of China Proper took another seventeen years of battling Ming loyalists, pretenders and rebels. The last Ming pretender, Prince Gui, sought refuge with the King of Burma, Pindale Min, but was turned over to a Qing expeditionary army commanded by Wu Sangui, who had him brought back to Yunnan province and executed in early 1662.

The Qing had taken shrewd advantage of Ming civilian government discrimination against the military and encouraged the Ming military to defect by spreading the message that the Manchus valued their skills. Banners made up of Han Chinese who defected before 1644 were classed among the Eight Banners, giving them social and legal privileges. Han defectors swelled the ranks of the Eight Banners so greatly that ethnic Manchus became a minority—only 16% in 1648, with Han Bannermen dominating at 75% and Mongol Bannermen making up the rest. Gunpowder weapons like muskets and artillery were wielded by the Chinese Banners. Normally, Han Chinese defector troops were deployed as the vanguard, while Manchu Bannermen acted as reserve forces or in the rear and were used predominantly for quick strikes with maximum impact, so as to minimize ethnic Manchu losses.

This multi-ethnic force conquered China for the Qing, The three Liaodong Han Bannermen officers who played key roles in the conquest of southern China were Shang Kexi, Geng Zhongming, and Kong Youde, who governed southern China autonomously as viceroys for the Qing after the conquest. Han Chinese Bannermen made up the majority of governors in the early Qing, stabilizing Qing rule. To promote ethnic harmony, a 1648 decree allowed Han Chinese civilian men to marry Manchu women from the Banners with the permission of the Board of Revenue if they were registered daughters of officials or commoners, or with the permission of their banner company captain if they were unregistered commoners. Later in the dynasty the policies allowing intermarriage were done away with.

The first seven years of the young Shunzhi Emperor's reign were dominated by Dorgon's regency. Because of his own political insecurity, Dorgon followed Hong Taiji's example by ruling in the name of the emperor at the expense of rival Manchu princes, many of whom he demoted or imprisoned under one pretext or another. Dorgon's precedents and example cast a long shadow. First, the Manchus had entered "South of the Wall" because Dorgon had responded decisively to Wu Sangui's appeal, then, instead of sacking Beijing as the rebels had done, Dorgon insisted, over the protests of other Manchu princes, on making it the dynastic capital and reappointing most Ming officials. No major Chinese dynasty had directly taken over its immediate predecessor's capital, but keeping the Ming capital and bureaucracy intact helped quickly stabilize the regime and sped up the conquest of the rest of the country. Dorgon then drastically reduced the influence of the eunuchs, a major force in the Ming bureaucracy, and directed Manchu women not to bind their feet in the Chinese style.

However, not all of Dorgon's policies were equally popular or as easy to implement. The controversial July 1645 edict (the "haircutting order") forced adult Han Chinese men to shave the front of their heads and comb the remaining hair into the queue hairstyle which was worn by Manchu men, on pain of death. The popular description of the order was: "To keep the hair, you lose the head; To keep your head, you cut the hair." To the Manchus, this policy was a test of loyalty and an aid in distinguishing friend from foe. For the Han Chinese, however, it was a humiliating reminder of Qing authority that challenged traditional Confucian values. The order triggered strong resistance in Jiangnan. In the ensuing unrest, some 100,000 Han were slaughtered.

On 31 December 1650, Dorgon suddenly died during a hunting expedition, marking the start of the Shunzhi Emperor's personal rule. Because the emperor was only 12 years old at that time, most decisions were made on his behalf by his mother, Empress Dowager Xiaozhuang, who turned out to be a skilled political operator. Although his support had been essential to Shunzhi's ascent, Dorgon had centralised so much power in his hands as to become a direct threat to the throne. So much so that upon his death he was bestowed the extraordinary posthumous title of Emperor Yi (Chinese: 義皇帝), the only instance in Qing history in which a Manchu "prince of the blood" (Chinese: 親王) was so honored. Two months into Shunzhi's personal rule, however, Dorgon was not only stripped of his titles, but his corpse was disinterred and mutilated. Dorgon's fall from grace also led to the purge of his family and associates at court, thus reverting power back to the person of the emperor. Shunzhi's promising start was cut short by his early death in 1661 at the age of 24 from smallpox. He was succeeded by his third son Xuanye, who reigned as the Kangxi Emperor.

The Manchus sent Han Bannermen to fight against Koxinga's Ming loyalists in Fujian. They removed the population from coastal areas in order to deprive Koxinga's Ming loyalists of resources. This led to a misunderstanding that Manchus were "afraid of water". Han Bannermen carried out the fighting and killing, casting doubt on the claim that fear of the water led to the coastal evacuation and ban on maritime activities. Even though a poem refers to the soldiers carrying out massacres in Fujian as "barbarians", both Han Green Standard Army and Han Bannermen were involved and carried out the worst slaughter. 400,000 Green Standard Army soldiers were used against the Three Feudatories in addition to the 200,000 Bannermen.

Kangxi Emperor's reign and consolidation
The sixty-one year reign of the Kangxi Emperor was the longest of any emperor of China and marked the beginning of the "High Qing" era, the zenith of the dynasty's social, economic and military power. The early Manchu rulers established two foundations of legitimacy that help to explain the stability of their dynasty. The first was the bureaucratic institutions and the neo-Confucian culture that they adopted from earlier dynasties. Manchu rulers and Han Chinese scholar-official elites gradually came to terms with each other. The examination system offered a path for ethnic Han to become officials. Imperial patronage of Kangxi Dictionary demonstrated respect for Confucian learning, while the Sacred Edict of 1670 effectively extolled Confucian family values. His attempts to discourage Chinese women from foot binding, however, were unsuccessful.

The second major source of stability was the Central Asian aspect of their Manchu identity, which allowed them to appeal to Mongol, Tibetan and Uighur constituents. The Qing used the title of Emperor (Huangdi) in Chinese, while among Mongols the Qing monarch was referred to as Bogda khan (wise Khan), and referred to as Gong Ma in Tibet. The Qianlong Emperor propagated the image of himself as a Buddhist sage ruler, a patron of Tibetan Buddhism. The Kangxi Emperor also welcomed to his court Jesuit missionaries, who had first come to China under the Ming.

Kangxi's reign started when he was eight years old. To prevent a repeat of Dorgon's monopolizing of power, on his deathbed his father hastily appointed four regents who were not closely related to the imperial family and had no claim to the throne. However, through chance and machination, Oboi, the most junior of the four, gradually achieved such dominance as to be a potential threat. Even though Oboi's loyalty was never an issue, his arrogance and conservatism led him into an escalating conflict with the young emperor. In 1669 Kangxi, through trickery, disarmed and imprisoned Oboi – a significant victory for a fifteen-year-old emperor.

The young emperor faced challenges in maintaining control of his kingdom, as well. Three Ming generals singled out for their contributions to the establishment of the dynasty had been granted governorships in Southern China. They became increasingly autonomous, leading to the Revolt of the Three Feudatories, which lasted for eight years. Kangxi was able to unify his forces for a counterattack led by a new generation of Manchu generals. By 1681, the Qing government had established control over a ravaged southern China, which took several decades to recover.

To extend and consolidate the dynasty's control in Central Asia, the Kangxi Emperor personally led a series of military campaigns against the Dzungars in Outer Mongolia. The Kangxi Emperor expelled Galdan's invading forces from these regions, which were then incorporated into the empire. Galdan was eventually killed in the Dzungar–Qing War. In 1683, Qing forces received the surrender of Formosa (Taiwan) from Zheng Keshuang, grandson of Koxinga, who had conquered Taiwan from the Dutch colonists as a base against the Qing. Winning Taiwan freed Kangxi's forces for series of battles over Albazin, the far eastern outpost of the Tsardom of Russia. The 1689 Treaty of Nerchinsk was China's first formal treaty with a European power and kept the border peaceful for the better part of two centuries. After Galdan's death, his followers, as adherents to Tibetan Buddhism, attempted to control the choice of the next Dalai Lama. Kangxi dispatched two armies to Lhasa, the capital of Tibet, and installed a Dalai Lama sympathetic to the Qing.

Reigns of the Yongzheng and Qianlong emperors
After the death of the Kangxi Emperor in the winter of 1722, his fourth son, Prince Yong (雍親王), became the Yongzheng Emperor. In the later years of Kangxi's reign, Yongzheng and his brothers had fought, and there were unsubstantiated rumours that he had usurped the throne by tampering with the Kangxi's testament on the night when Kangxi died. In fact, his father had trusted him with delicate political issues and discussed state policy with him. When Yongzheng came to power at the age of 45, he felt a sense of urgency about the problems that had accumulated in his father's later years, and he did not need instruction on how to exercise power. In the words of one recent historian, he was "severe, suspicious, and jealous, but extremely capable and resourceful", and in the words of another, he turned out to be an "early modern state-maker of the first order".

Yongzheng moved rapidly. First, he promoted Confucian orthodoxy and reversed what he saw as his father's laxness by cracking down on unorthodox sects and by decapitating an anti-Manchu writer his father had pardoned. In 1723 he outlawed Christianity and expelled Christian missionaries, though some were allowed to remain in the capital. Next, he moved to control the government. He expanded his father's system of Palace Memorials, which brought frank and detailed reports on local conditions directly to the throne without being intercepted by the bureaucracy, and he created a small Grand Council of personal advisors, which eventually grew into the emperor's de facto cabinet for the rest of the dynasty. He shrewdly filled key positions with Manchu and Han Chinese officials who depended on his patronage. When he began to realize that the financial crisis was even greater than he had thought, Yongzheng rejected his father's lenient approach to local landowning elites and mounted a campaign to enforce collection of the land tax. The increased revenues were to be used for "money to nourish honesty" among local officials and for local irrigation, schools, roads, and charity. Although these reforms were effective in the north, in the south and lower Yangzi valley, where Kangxi had wooed the elites, there were long established networks of officials and landowners. Yongzheng dispatched experienced Manchu commissioners to penetrate the thickets of falsified land registers and coded account books, but they were met with tricks, passivity, and even violence. The fiscal crisis persisted.

Yongzheng also inherited diplomatic and strategic problems. A team made up entirely of Manchus drew up the Treaty of Kyakhta (1727) to solidify the diplomatic understanding with Russia. In exchange for territory and trading rights, the Qing would have a free hand dealing with the situation in Mongolia. Yongzheng then turned to that situation, where the Zunghars threatened to re-emerge, and to the southwest, where local Miao chieftains resisted Qing expansion. These campaigns drained the treasury but established the emperor's control of the military and military finance.

When Yongzheng Emperor died in 1735 his 24-year-old son, Prince Bao (寶親王), became the Qianlong Emperor. Qianlong personally led the Ten Great Campaigns to expand military control into present-day Xinjiang and Mongolia, putting down revolts and uprisings in Sichuan and parts of southern China while expanding control over Tibet.

The Qianlong Emperor launched several ambitious cultural projects, including the compilation of the Siku Quanshu, or Complete Repository of the Four Branches of Literature, the largest collection of books in Chinese history. Nevertheless, Qianlong used Literary Inquisition to silence opposition. Beneath outward prosperity and imperial confidence, the later years of Qianlong's reign were marked by rampant corruption and neglect. Heshen, the emperor's handsome young favorite, took advantage of the emperor's indulgence to become one of the most corrupt officials in the history of the dynasty. Qianlong's son, the Jiaqing Emperor (r. 1796–1820), eventually forced Heshen to commit suicide.

Population was stagnant for the first half of the 17th century due to civil wars and epidemics, but prosperity and internal stability gradually reversed this trend. The Qianlong Emperor bemoaned the situation by remarking, "The population continues to grow, but the land does not." The introduction of new crops from the Americas such as the potato and peanut allowed an improved food supply as well, so that the total population of China during the 18th century ballooned from 100 million to 300 million people. Soon farmers were forced to work ever-smaller holdings more intensely. The only remaining part of the empire that had arable farmland was Manchuria, where the provinces of Jilin and Heilongjiang had been walled off as a Manchu homeland. Despite prohibitions, by the 18th century Han Chinese streamed into Manchuria, both illegally and legally, over the Great Wall and Willow Palisade.

In 1796, open rebellion broke out among followers of the White Lotus Society, who blamed Qing officials, saying "the officials have forced the people to rebel." Officials in other parts of the country were also blamed for corruption, failing to keep the famine relief granaries full, poor maintenance of roads and waterworks, and bureaucratic factionalism. There soon followed uprisings of "new sect" Muslims against local Muslim officials, and Miao tribesmen in southwest China. The White Lotus Rebellion continued for eight years, until 1804, when badly run, corrupt, and brutal campaigns finally ended it.

Rebellion, unrest and external pressure
At the start of the dynasty, the Chinese empire continued to be the hegemonic power in East Asia. Although there was no formal ministry of foreign relations, the Lifan Yuan was responsible for relations with the Mongol and Tibetans in Central Asia, while the tributary system, a loose set of institutions and customs taken over from the Ming, in theory governed relations with East and Southeast Asian countries. The Treaty of Nerchinsk (1689) stabilized relations with Tsarist Russia.

However, during the 18th century European empires gradually expanded across the world, as European states developed economies built on maritime trade, colonial extraction, and advances in technology. The dynasty was confronted with newly developing concepts of the international system and state-to-state relations. European trading posts expanded into territorial control in nearby India and on the islands that are now Indonesia. The Qing response, successful for a time, was to establish the Canton System in 1756, which restricted maritime trade to that city (modern-day Guangzhou) and gave monopoly trading rights to private Chinese merchants. The British East India Company and the Dutch East India Company had long before been granted similar monopoly rights by their governments.

In 1793, the British East India Company, with the support of the British government, sent a diplomatic mission to China led by Lord George Macartney in order to open free trade and put relations on a basis of equality. The imperial court viewed trade as of secondary interest, whereas the British saw maritime trade as the key to their economy. The Qianlong Emperor told Macartney "the kings of the myriad nations come by land and sea with all sorts of precious things", and "consequently there is nothing we lack..."

Since China had little demand for European goods, Europe paid in silver for Chinese goods such as silk, tea, and ceramics, an imbalance that worried the mercantilist governments of Britain and France. The growing Chinese demand for opium provided the remedy. The British East India Company greatly expanded its production in Bengal. The Daoguang Emperor, concerned both over the outflow of silver and the damage that opium smoking was causing to his subjects, ordered Lin Zexu to end the opium trade. Lin confiscated the stocks of opium without compensation in 1839, leading Britain to send a military expedition the following year.

The First Opium War revealed the outdated state of the Chinese military. The Qing navy, composed entirely of wooden sailing junks, was severely outclassed by the modern tactics and firepower of the British Royal Navy. British soldiers, using advanced muskets and artillery, easily outmaneuvered and outgunned Qing forces in ground battles. The Qing surrender in 1842 marked a decisive, humiliating blow. The Treaty of Nanjing, the first of the "unequal treaties", demanded war reparations, forced China to open up the Treaty Ports of Canton, Amoy, Fuchow, Ningpo and Shanghai to Western trade and missionaries, and to cede Hong Kong Island to Britain. It revealed weaknesses in the Qing government and provoked rebellions against the regime.

The Taiping Rebellion in the mid-19th century was the first major instance of anti-Manchu sentiment. Amid widespread social unrest and worsening famine, the rebellion not only posed the most serious threat towards Qing rulers, it has also been called the "bloodiest civil war of all time"; during its fourteen-year course from 1850 to 1864 between 20 and 30 million people died. Hong Xiuquan, a failed civil service candidate, in 1851 launched an uprising in Guizhou province, and established the Taiping Heavenly Kingdom with Hong himself as king. Hong announced that he had visions of God and that he was the brother of Jesus Christ. Slavery, concubinage, arranged marriage, opium smoking, footbinding, judicial torture, and the worship of idols were all banned. However, success led to internal feuds, defections and corruption. In addition, British and French troops, equipped with modern weapons, had come to the assistance of the Qing imperial army. It was not until 1864 that Qing armies under Zeng Guofan succeeded in crushing the revolt. After the outbreak of this rebellion, there were also revolts by the Muslims and Miao people of China against the Qing dynasty, most notably in the Miao Rebellion (1854–73) in Guizhou, the Panthay Rebellion (1856–1873) in Yunnan and the Dungan Revolt (1862–77) in the northwest.

The Western powers, largely unsatisfied with the Treaty of Nanjing, gave grudging support to the Qing government during the Taiping and Nian Rebellions. China's income fell sharply during the wars as vast areas of farmland were destroyed, millions of lives were lost, and countless armies were raised and equipped to fight the rebels. In 1854, Britain tried to re-negotiate the Treaty of Nanjing, inserting clauses allowing British commercial access to Chinese rivers and the creation of a permanent British embassy at Beijing.

In 1856, Qing authorities, in searching for a pirate, boarded a ship, the Arrow, which the British claimed had been flying the British flag, an incident which led to the Second Opium War. In 1858, facing no other options, the Xianfeng Emperor agreed to the Treaty of Tientsin, which contained clauses deeply insulting to the Chinese, such as a demand that all official Chinese documents be written in English and a proviso granting British warships unlimited access to all navigable Chinese rivers.

Ratification of the treaty in the following year led to a resumption of hostilities. In 1860, with Anglo-French forces marching on Beijing, the emperor and his court fled the capital for the imperial hunting lodge at Rehe. Once in Beijing, the Anglo-French forces looted and burned the Old Summer Palace and, in an act of revenge for the arrest, torture, and execution of the English diplomatic mission. Prince Gong, a younger half-brother of the emperor, who had been left as his brother's proxy in the capital, was forced to sign the Convention of Beijing. The humiliated emperor died the following year at Rehe.

Self-strengthening and the frustration of reforms
Yet the dynasty rallied. Chinese generals and officials such as Zuo Zongtang led the suppression of rebellions and stood behind the Manchus. When the Tongzhi Emperor came to the throne at the age of five in 1861, these officials rallied around him in what was called the Tongzhi Restoration. Their aim was to adopt Western military technology in order to preserve Confucian values. Zeng Guofan, in alliance with Prince Gong, sponsored the rise of younger officials such as Li Hongzhang, who put the dynasty back on its feet financially and instituted the Self-Strengthening Movement. The reformers then proceeded with institutional reforms, including China's first unified ministry of foreign affairs, the Zongli Yamen; allowing foreign diplomats to reside in the capital; establishment of the Imperial Maritime Customs Service; the formation of modernized armies, such as the Beiyang Army, as well as a navy; and the purchase from Europeans of armament factories.

The dynasty lost control of peripheral territories bit by bit. In return for promises of support against the British and the French, the Russian Empire took large chunks of territory in the Northeast in 1860. The period of cooperation between the reformers and the European powers ended with the Tientsin Massacre of 1870, which was incited by the murder of French nuns set off by the belligerence of local French diplomats. Starting with the Cochinchina Campaign in 1858, France expanded control of Indochina. By 1883, France was in full control of the region and had reached the Chinese border. The Sino-French War began with a surprise attack by the French on the Chinese southern fleet at Fuzhou. After that the Chinese declared war on the French. A French invasion of Taiwan was halted and the French were defeated on land in Tonkin at the Battle of Bang Bo. However Japan threatened to enter the war against China due to the Gapsin Coup and China chose to end the war with negotiations. The war ended in 1885 with the Treaty of Tientsin (1885) and the Chinese recognition of the French protectorate in Vietnam.

In 1884, pro-Japanese Koreans in Seoul led the Gapsin Coup. Tensions between China and Japan rose after China intervened to suppress the uprising. Japanese Prime Minister Itō Hirobumi and Li Hongzhang signed the Convention of Tientsin, an agreement to withdraw troops simultaneously, but the First Sino-Japanese War of 1895 was a military humiliation. The Treaty of Shimonoseki recognized Korean independence and ceded Taiwan and the Pescadores to Japan. The terms might have been harsher, but when a Japanese citizen attacked and wounded Li Hongzhang, an international outcry shamed the Japanese into revising them. The original agreement stipulated the cession of Liaodong Peninsula to Japan, but Russia, with its own designs on the territory, along with Germany and France, in the Triple Intervention, successfully put pressure on the Japanese to abandon the peninsula.

These years saw an evolution in the participation of Empress Dowager Cixi (Wade–Giles: Tz'u-Hsi) in state affairs. She entered the imperial palace in the 1850s as a concubine to the Xianfeng Emperor (r. 1850–1861) and came to power in 1861 after her five-year-old son, the Tongzhi Emperor ascended the throne. She, the Empress Dowager Ci'an (who had been Xianfeng's empress), and Prince Gong (a son of the Daoguang Emperor), staged a coup that ousted several regents for the boy emperor. Between 1861 and 1873, she and Ci'an served as regents, choosing the reign title "Tongzhi" (ruling together). Following the emperor's death in 1875, Cixi's nephew, the Guangxu Emperor, took the throne, in violation of the dynastic custom that the new emperor be of the next generation, and another regency began. In the spring of 1881, Ci'an suddenly died, aged only forty-three, leaving Cixi as sole regent.

From 1889, when Guangxu began to rule in his own right, to 1898, the Empress Dowager lived in semi-retirement, spending the majority of the year at the Summer Palace. On 1 November 1897, two German Roman Catholic missionaries were murdered in the southern part of Shandong province (the Juye Incident). Germany used the murders as a pretext for a naval occupation of Jiaozhou Bay. The occupation prompted a "scramble for concessions" in 1898, which included the German lease of Jiazhou Bay, the Russian acquisition of Liaodong, and the British lease of the New Territories of Hong Kong.

In the wake of these external defeats, the Guangxu Emperor initiated the Hundred Days' Reform of 1898. Newer, more radical advisers such as Kang Youwei were given positions of influence. The emperor issued a series of edicts and plans were made to reorganize the bureaucracy, restructure the school system, and appoint new officials. Opposition from the bureaucracy was immediate and intense. Although she had been involved in the initial reforms, the Empress Dowager stepped in to call them off, arrested and executed several reformers, and took over day-to-day control of policy. Yet many of the plans stayed in place, and the goals of reform were implanted.

Drought in North China, combined with the imperialist designs of European powers and the instability of the Qing government, created background conditions for the Boxers. In 1900, local groups of Boxers proclaiming support for the Qing dynasty murdered foreign missionaries and large numbers of Chinese Christians, then converged on Beijing to besiege the Foreign Legation Quarter. A coalition of European, Japanese, and Russian armies (the Eight-Nation Alliance) then entered China without diplomatic notice, much less permission. Cixi declared war on all of these nations, only to lose control of Beijing after a short, but hard-fought campaign. She fled to Xi'an. The victorious allies then enforced their demands on the Qing government, including compensation for their expenses in invading China and execution of complicit officials, via the Boxer Protocol.

Reform, revolution, collapse
The defeat by Japan in 1895 created a sense of crisis which the failure of the 1898 reforms and the disasters of 1900 only exacerbated. Cixi in 1901 moved to mollify the foreign community, called for reform proposals, and initiated a set of "New Policies", also known as the "Late Qing Reform". Over the next few years the reforms included the restructuring of the national education, judicial, and fiscal systems, the most dramatic of which was the abolition of the imperial examinations in 1905. The court directed a constitution to be drafted, and provincial elections were held, the first in China's history. Sun Yat-sen and revolutionaries debated reform officials and constitutional monarchists such as Kang Youwei and Liang Qichao over how to transform the Manchu Empire into a modern Han Chinese nation.

The Guangxu Emperor died on 14 November 1908 and Cixi died the following day. Rumors held that she or Yuan Shikai ordered trusted eunuchs to poison the Guangxu Emperor, and an autopsy conducted nearly a century later confirmed lethal levels of arsenic in his corpse. Puyi, the oldest son of Zaifeng, Prince Chun, and nephew to the childless Guangxu Emperor, was appointed successor at the age of two, leaving Zaifeng with the regency. Zaifeng forced Yuan Shikai to resign. In April 1911 Zaifeng created a cabinet known as "The Royal Cabinet" because among the thirteen cabinet members, five were members of the imperial family or Aisin-Gioro relatives.

The Wuchang Uprising of 10 October 1911 set off a series of uprisings. By November, 14 of the 15 provinces had rejected Qing rule. This led to the creation of the Republic of China, in Nanjing on January 1 1912, with Sun Yat-sen as its provisional head. Seeing a desperate situation, the Qing court brought Yuan Shikai back to power. His Beiyang Army crushed the revolutionaries in Wuhan at the Battle of Yangxia. After taking the position of Prime Minister he created his own cabinet, with the support of Empress Dowager Longyu.

On 12 February 1912, Longyu issued the abdication of the child emperor Puyi. This brought an end to over 2,000 years of Imperial China and began a period of instability. A "Royalist Party", and tried to restore the monarchy, but to no avail. In July 1917, there was an abortive attempt to restore the Qing dynasty led by Zhang Xun. Puyi was allowed to live in the Forbidden City after his abdication until 1924, when he moved to the Japanese concession in Tianjin. In the 1930s, the Empire of Japan invaded Northeast China and founded Manchukuo in 1932, with Puyi as its emperor. After the invasion by the Soviet Union, Manchukuo fell in 1945.

Government
The early Qing emperors adopted the bureaucratic structures and institutions from the preceding Ming dynasty but split rule between Han Chinese and Manchus, with some positions also given to Mongols. Like previous dynasties, the Qing recruited officials via the imperial examination system, until the system was abolished in 1905. The Qing divided the positions into civil and military positions, each having nine grades or ranks, each subdivided into a and b categories. Civil appointments ranged from an attendant to the emperor or a Grand Secretary in the Forbidden City (highest) to being a prefectural tax collector, deputy jail warden, deputy police commissioner, or tax examiner. Military appointments ranged from being a field marshal or chamberlain of the imperial bodyguard to a third class sergeant, corporal or a first or second class private.

Central government agencies
The formal structure of the Qing government centered on the Emperor as the absolute ruler, who presided over six Boards (Ministries), each headed by two presidents and assisted by four vice presidents. In contrast to the Ming system, however, Qing ethnic policy dictated that appointments were split between Manchu noblemen and Han officials who had passed the highest levels of the state examinations. The Grand Secretariat, which had been an important policy-making body under the Ming, lost its importance during the Qing and evolved into an imperial chancery. The institutions which had been inherited from the Ming formed the core of the Qing "Outer Court", which handled routine matters and was located in the southern part of the Forbidden City.[citation needed]

In order not to let the routine administration take over the running of the empire, the Qing emperors made sure that all important matters were decided in the "Inner Court", which was dominated by the imperial family and Manchu nobility and which was located in the northern part of the Forbidden City. The core institution of the inner court was the Grand Council. It emerged in the 1720s under the reign of the Yongzheng Emperor as a body charged with handling Qing military campaigns against the Mongols, but soon took over other military and administrative duties, centralizing authority under the crown. The Grand Councillors served as a sort of privy council to the emperor.

From the early Qing, the central government was characterized by a system of dual appointments by which each position in the central government had a Manchu and a Han Chinese assigned to it. The Han Chinese appointee was required to do the substantive work and the Manchu to ensure Han loyalty to Qing rule.

There was also another government institution called Imperial Household Department which was unique to the Qing dynasty. It was established before the fall of the Ming, but it became mature only after 1661, following the death of the Shunzhi Emperor and the accession of his son, the Kangxi Emperor. The department's original purpose was to manage the internal affairs of the imperial family and the activities of the inner palace (in which tasks it largely replaced eunuchs), but it also played an important role in Qing relations with Tibet and Mongolia, engaged in trading activities (jade, ginseng, salt, furs, etc.), managed textile factories in the Jiangnan region, and even published books. Relations with the Salt Superintendents and salt merchants, such as those at Yangzhou, were particularly lucrative, especially since they were direct, and did not go through absorptive layers of bureaucracy. The department was manned by booi, or "bondservants," from the Upper Three Banners. By the 19th century, it managed the activities of at least 56 subagencies.

Administrative divisions
Qing China reached its largest extent during the 18th century, when it ruled China proper (eighteen provinces) as well as the areas of present-day Northeast China, Inner Mongolia, Outer Mongolia, Xinjiang and Tibet, at approximately 13 million km2 in size. There were originally 18 provinces, all of which in China proper, but later this number was increased to 22, with Manchuria and Xinjiang being divided or turned into provinces. Taiwan, originally part of Fujian province, became a province of its own in the 19th century, but was ceded to the Empire of Japan following the First Sino-Japanese War in 1895.

The Qing organization of provinces was based on the fifteen administrative units set up by the Ming dynasty, later made into eighteen provinces by splitting for example, Huguang into Hubei and Hunan provinces. The provincial bureaucracy continued the Yuan and Ming practice of three parallel lines, civil, military, and censorate, or surveillance. Each province was administered by a governor (巡撫, xunfu) and a provincial military commander (提督, tidu). Below the province were prefectures (府, fu) operating under a prefect (知府, zhīfǔ), followed by subprefectures under a subprefect. The lowest unit was the county, overseen by a county magistrate. The eighteen provinces are also known as "China proper". The position of viceroy or governor-general (總督, zongdu) was the highest rank in the provincial administration. There were eight regional viceroys in China proper, each usually took charge of two or three provinces. The Viceroy of Zhili, who was responsible for the area surrounding the capital Beijing, is usually considered as the most honorable and powerful viceroy among the eight.

By the mid-18th century, the Qing had successfully put outer regions such as Inner and Outer Mongolia, Tibet and Xinjiang under its control. Imperial commissioners and garrisons were sent to Mongolia and Tibet to oversee their affairs. These territories were also under supervision of a central government institution called Lifan Yuan. Qinghai was also put under direct control of the Qing court. Xinjiang, also known as Chinese Turkestan, was subdivided into the regions north and south of the Tian Shan mountains, also known today as Dzungaria and Tarim Basin respectively, but the post of Ili General was established in 1762 to exercise unified military and administrative jurisdiction over both regions. Dzungaria was fully opened to Han migration by the Qianlong Emperor from the beginning. Han migrants were at first forbidden from permanently settling in the Tarim Basin but were the ban was lifted after the invasion by Jahangir Khoja in the 1820s. Likewise, Manchuria was also governed by military generals until its division into provinces, though some areas of Xinjiang and Northeast China were lost to the Russian Empire in the mid-19th century. Manchuria was originally separated from China proper by the Inner Willow Palisade, a ditch and embankment planted with willows intended to restrict the movement of the Han Chinese, as the area was off-limits to civilian Han Chinese until the government started colonizing the area, especially since the 1860s.

With respect to these outer regions, the Qing maintained imperial control, with the emperor acting as Mongol khan, patron of Tibetan Buddhism and protector of Muslims. However, Qing policy changed with the establishment of Xinjiang province in 1884. During The Great Game era, taking advantage of the Dungan revolt in northwest China, Yaqub Beg invaded Xinjiang from Central Asia with support from the British Empire, and made himself the ruler of the kingdom of Kashgaria. The Qing court sent forces to defeat Yaqub Beg and Xinjiang was reconquered, and then the political system of China proper was formally applied onto Xinjiang. The Kumul Khanate, which was incorporated into the Qing empire as a vassal after helping Qing defeat the Zunghars in 1757, maintained its status after Xinjiang turned into a province through the end of the dynasty in the Xinhai Revolution up until 1930. In the early 20th century, Britain sent an expedition force to Tibet and forced Tibetans to sign a treaty. The Qing court responded by asserting Chinese sovereignty over Tibet, resulting in the 1906 Anglo-Chinese Convention signed between Britain and China. The British agreed not to annex Tibetan territory or to interfere in the administration of Tibet, while China engaged not to permit any other foreign state to interfere with the territory or internal administration of Tibet. Furthermore, similar to Xinjiang which was converted into a province earlier, the Qing government also turned Manchuria into three provinces in the early 20th century, officially known as the "Three Northeast Provinces", and established the post of Viceroy of the Three Northeast Provinces to oversee these provinces, making the total number of regional viceroys to nine.

Military
The Qing dynasty was established by conquest and maintained by armed force. The founding emperors personally organized and led the armies, and the continued cultural and political legitimacy of the dynasty depended on the ability to defend the country from invasion and expand its territory. Therefore, military institutions, leadership, and finance were fundamental to the dynasty's initial success and ultimate decay. The early military system centered on the Eight Banners, a hybrid institution that also played social, economic, and political roles. The Banner system was developed on an informal basis as early as 1601, and formally established in 1615 by Jurchen leader Nurhaci (1559–1626), the retrospectively recognized founder of the Qing. His son Hong Taiji (1592–1643), who renamed the Jurchens "Manchus," created eight Mongol banners to mirror the Manchu ones and eight "Han-martial" (漢軍; Hànjūn) banners manned by Chinese who surrendered to the Qing before the full-fledged conquest of China proper began in 1644. After 1644, the Ming Chinese troops that surrendered to the Qing were integrated into the Green Standard Army, a corps that eventually outnumbered the Banners by three to one.

The use of gunpowder during the High Qing can compete with the three gunpowder empires in western Asia. Manchu imperial princes led the Banners in defeating the Ming armies, but after lasting peace was established starting in 1683, both the Banners and the Green Standard Armies started to lose their efficiency. Garrisoned in cities, soldiers had few occasions to drill. The Qing nonetheless used superior armament and logistics to expand deeply into Central Asia, defeat the Dzungar Mongols in 1759, and complete their conquest of Xinjiang. Despite the dynasty's pride in the Ten Great Campaigns of the Qianlong Emperor (r. 1735–1796), the Qing armies became largely ineffective by the end of the 18th century. It took almost ten years and huge financial waste to defeat the badly equipped White Lotus Rebellion (1795–1804), partly by legitimizing militias led by local Han Chinese elites. The Taiping Rebellion (1850–1864), a large-scale uprising that started in southern China, marched within miles of Beijing in 1853. The Qing court was forced to let its Han Chinese governors-general, first led by Zeng Guofan, raise regional armies. This new type of army and leadership defeated the rebels but signaled the end of Manchu dominance of the military establishment.

The military technology of the European Industrial Revolution made China's armament and military rapidly obsolete. In 1860 British and French forces in the Second Opium War captured Beijing and sacked the Summer Palace. The shaken court attempted to modernize its military and industrial institutions by buying European technology. This Self-Strengthening Movement established shipyards (notably the Jiangnan Arsenal and the Foochow Arsenal) and bought modern guns and battleships in Europe. The Qing navy became the largest in East Asia. But organization and logistics were inadequate, officer training was deficient, and corruption widespread. The Beiyang Fleet was virtually destroyed and the modernized ground forces defeated in the 1895 First Sino-Japanese War. The Qing created a New Army, but could not prevent the Eight Nation Alliance from invading China to put down the Boxer Uprising in 1900. The revolt of a New Army corps in 1911 led to the fall of the dynasty.

Population growth and mobility
The most significant facts of early and mid-Qing social history was growth in population, population density, and mobility. The population in 1700, according to widely accepted estimates, was roughly 150 million, about what it had been under the late Ming a century before, then doubled over the next century, and reached a height of 450 million on the eve of the Taiping Rebellion in 1850.

One reason for this growth was the spread of New World crops like peanuts, sweet potatoes, and potatoes, which helped to sustain the people during shortages of harvest for crops such as rice or wheat. These crops could be grown under harsher conditions, and thus were cheaper as well, which led to them becoming staples for poorer farmers, decreasing the number of deaths from malnutrition. Diseases such as smallpox, widespread in the seventeenth century, were brought under control by an increase in inoculations. In addition, infant deaths were also greatly decreased due to improvements in birthing techniques and childcare performed by doctors and midwives and through an increase in medical books available to the public. Government campaigns decreased the incidence of infanticide. Unlike Europe, where population growth in this period was greatest in the cities, in China the growth in cities and the lower Yangzi was low. The greatest growth was in the borderlands and the highlands, where farmers could clear large tracts of marshlands and forests.

The population was also remarkably mobile, perhaps more so than at any time in Chinese history. Indeed, the Qing government did far more to encourage mobility than to discourage it. Millions of Han Chinese migrated to Yunnan and Guizhou in the 18th century, and also to Taiwan. After the conquests of the 1750s and 1760s, the court organized agricultural colonies in Xinjiang. Migration might be permanent, for resettlement, or the migrants (in theory at least) might regard the move as a temporary sojourn. The latter included an increasingly large and mobile workforce. Local-origin-based merchant groups also moved freely. This mobility also included the organized movement of Qing subjects overseas, largely to Southeastern Asia, in search of trade and other economic opportunities.

Statuses in society
According to statute, Qing society was divided into relatively closed estates, of which in most general terms there were five. Apart from the estates of the officials, the comparatively minuscule aristocracy, and the degree-holding literati, there also existed a major division among ordinary Chinese between commoners and people with inferior status. They were divided into two categories: one of them, the good "commoner" people, the other "mean" people who were seen as debased and servile. The majority of the population belonged to the first category and were described as liangmin, a legal term meaning good people, as opposed to jianmin meaning the mean (or ignoble) people. Qing law explicitly stated that the traditional four occupational groups of scholars, farmers, artisans and merchants were "good", or having a status of commoners. On the other hand, slaves or bondservants, entertainers (including prostitutes and actors), tattooed criminals, and those low-level employees of government officials were the "mean people". Mean people were legally inferior to commoners and suffered unequal treatments, such as being forbidden to take the imperial examination. Furthermore, such people were usually not allowed to marry with free commoners and were even often required to acknowledge their abasement in society through actions such as bowing. However, throughout the Qing dynasty, the emperor and his court, as well as the bureaucracy, worked towards reducing the distinctions between the debased and free but did not completely succeed even at the end of its era in merging the two classifications together.

Qing gentry
Although there had been no powerful hereditary aristocracy since the Song dynasty, the gentry (shenshi), like their British counterparts, enjoyed imperial privileges and managed local affairs. The status of this scholar-official was defined by passing at least the first level of civil service examinations and holding a degree, which qualified him to hold imperial office, although he might not actually do so. The gentry member could legally wear gentry robes and could talk to officials as equals. Officials who had served for one or two terms could retire to enjoy the glory of their status. Informally, the gentry then presided over local society and could use their connections to influence the magistrate, acquire land, and maintain large households. The gentry thus included not only males holding degrees but also their wives, descendants, some of their relatives.

The gentry class was divided into groups. Not all who held office were literati, as merchant families could purchase degrees, and not all who passed the exams found employment as officials, since the number of degree-holders was greater than the number of openings. The gentry class also differed in the source and amount of their income. Literati families drew income from landholding, as well as from lending money. Officials, of course, drew a salary, which, as the years went by, were less and less adequate, leading to widespread reliance on "squeeze," irrgular payments. Those who prepared for but failed the exams, like those who passed but were not appointed to office, could become tutors or teachers, private secretaries to sitting officials, administrators of guilds or temples, or other positions that required literacy. Others turned to fields such as engineering, medicine, or law, which by the nineteenth century demanded specialized learning. By the nineteenth century, it was no longer shameful to become an author or publisher of fiction.

The Qing gentry were marked as much by their aspiration to a cultured lifestyle as by their legal status. They lived more refined and comfortable lives than the commoners and used sedan-chairs to travel any significant distance. They often showed off their learning by collecting objects such as scholars' stones, porcelain or pieces of art for their beauty, which set them off from less cultivated commoners.

Family and kinship
By the Qing, the building block of society was patrilineal kinship, that is, the local family lineage with descent through the male line, often translated as "clan". A shift in marital practices, identity and loyalty had begun during the Song dynasty when the civil service examination began to replace nobility and inheritance as a means for gaining status. Instead of intermarrying within aristocratic elites of the same social status, they tended to form marital alliances with nearby families of the same or higher wealth, and established the local people's interests as first and foremost which helped to form intermarried townships. The Neo-Confucian ideology, especially the Cheng-Zhu thinking favored by Qing social thought, emphasised patrilineal families and genealogy in society.

The emperors and local officials exhorted families to compile genealogies in order to stabilize local society. The genealogy was placed in the ancestral hall, which served as the lineage's headquarters and a place for annual ancestral sacrifice.The genealogy recorded the lineage's history, biographies of respected ancestors, a chart of all the family members of each generation, rules for the members to follow, and often copies of title contracts for collective property as well. A specific Chinese character appeared in the given name of each male of each generation, often well into the future. These lineages claimed to be based on biological descent but when a member of a lineage gained office or became wealthy, he might use considerable creativity in selecting a prestigious figure to be "founding ancestor". Such worship was intended to ensure that the ancestors remain content and benevolent spirits (shen) who would keep watch over and protect the family. Later observers felt that the ancestral cult focused on the family and lineage, rather than on more public matters such as community and nation.

Inner Mongols and Khalkha Mongols in the Qing rarely knew their ancestors beyond four generations and Mongol tribal society was not organized among patrilineal clans, contrary to what was commonly thought, but included unrelated people at the base unit of organization. The Qing tried but failed to promote the Chinese Neo-Confucian ideology of organizing society along patrimonial clans among the Mongols.

Religion
Manchu rulers presided over a multi-ethnic empire and the emperor, who was held responsible for “All Under Heaven” or Tian Xia, patronized and took responsibility for all religions and belief systems. The empire's “spiritual center of gravity" was the "religio-political state."  Since the empire was part of the order of the cosmos, which conferred the Mandate of Heaven, the Emperor as “Son of Heaven” was both the head of the political system and the head priest of the State Cult. He united political and spiritual roles that in medieval Europe were separated into the roles of emperor and pope and performed the imperial rites that ensured political order, prosperity, and social morality. The emperor and his officials, who were his personal representatives, took responsibility all aspects of the empire, especially spiritual life and religious institutions and practices. The county magistrate, as the emperor's political and spiritual representative, made offerings at officially recognized temples, for instance those dedicated to the God of Walls and Moats, (the so-called “City God), and local deified heroes. The magistrate lectured on the Emperor's Sacred Edict to promote civic morality; he kept close watch over religious organizations whose actions might threaten the sovereignty and religious prerogative of the state.

The belief system most widely practiced among Han Chinese is often called local, popular, or folk religion, and was centered around the patriarchal family, the maintenance of the male family line, and shen, or spirits. Common practices included ancestor veneration, filial piety, local gods and spirits. Rites included mourning, funeral, burial, practices. Since they did not require exclusive allegiance, forms and branches of Confucianism, Buddhism, and Daoism were intertwined, for instance in the syncretic Three teachings. Chinese folk religion combined elements of the three, with local variations  County magistrates, who were graded and promoted on their ability to maintain local order, tolerated local sects and even patronized local temples as long as they were orderly, but were suspicious of heterodox sects that defied state authority and rejected imperial doctrines. Some of these sects indeed had long histories of rebellion, such as the Way of Former Heaven, which drew on Daoism, and the White Lotus society, which drew on millennial Buddhism. The White Lotus Rebellion (1796-1804) confirmed official suspicions as did the Taiping Rebellion, which drew on millennial Christianity.

Manchu and imperial religion
The Manchu imperial family were especially attracted by Yellow Sect or Gelug Buddhism that had spread from Tibet into Mongolia. The Fifth Dalai Lama, who had gained power in 1642, just before the Manchus took Beijing, looked to the Qing court for support. The Kangxi and Qianlong emperors practiced this form of Tibetan Buddhism as one of their household religions and built temples that made Beijing one of its centers, and constructed a replica Lhasa's Potala Palace at their summer retreat in Rehe. Shamanism, the most common religion among Manchus, was a spiritual inheritance from their Tungusic ancestors that set them off from Han Chinese. State shamanism was important to the imperial family both to maintain their Manchu cultural identity and to promote their imperial legitimacy among tribes in the northeast. Imperial obligations included rituals on the first day of Chinese New Year at a shamanic shrine (tangse). Practices in Manchu families included sacrifices to the ancestors, and the use of shamans, often women, who went into a trance to seek healing or exorcism

Christianity, Judaism, and Islam
Further information: Jesuit China missions, Chinese Rites controversy, Christianity in China, Protestant missions in China, Islam in China, Judaism in China, Catholic Church in China § Qing (1644–1911) dynasty, and Medical missions in China

The Abrahamic religions had arrived from Western Asia as early as the Tang dynasty but their insistence that they should be practiced to the exclusion of other religions made them less adaptable than Buddhism, which had quickly been accepted as native. Islam predominated in Central Asian areas of the empire, while Judaism and Christianity were practiced in well-established but self-contained communities.

Several hundred Catholic missionaries arrived from the late Ming period until the proscription of Christianity in 1724. The Jesuits adapted to Chinese expectations, evangelized from the top down, adopted the robes and lifestyles of literati, becoming proficient in the Confucian classics, and did not challenge Chinese moral values, such as ancestor veneration. They proved their value to the early Manchu emperors with their work in gunnery, cartography, and astronomy, but fell out of favor for a time until the Kangxi Emperor's 1692 edict of toleration. In the countryside, the newly arrived Dominican and Franciscan clerics established rural communities that adapted to local folk religious practices by emphasizing healing, festivals, and holy days rather than sacraments and doctrine. By the beginning of the eighteenth century, a spectrum of Christian believers had established communities. In 1724, the Yongzheng Emperor (1678–1735) announced that Christianity was a "heterodox teaching" and hence proscribed. Since the European Catholic missionaries kept control in their own hands and had not allowed the creation of a native clergy, however, the number of Catholics would grow more rapidly after 1724 and local communities could set their own rules and standards. In 1811, Christian religious activities were further criminalized by the Jiaqing Emperor (1760–1820). The imperial ban was lifted by Treaty in 1846.

The first Protestant missionary to China was Robert Morrison (1782–1834) of the London Missionary Society (LMS), who arrived at Canton on September 6, 1807. He completed a translation of the entire Bible in 1819. Liang Afa (1789–1855), a Morrison-trained Chinese convert, branched out the evangelization mission in inner China. The two Opium Wars (1839–1860) marked the watershed of Protestant Christian missions. The 1842 Treaty of Nanjing, the American treaty and the French treaty signed in 1844, and the 1858 Treaty of Tianjin, distinguished Christianity from the local religions and granted it protected status. Chinese popular cults, such as the White Lotus and the Eight Trigram, presented themselves as Christian to share this protection.

In the late 1840s Hong Xiuquan read Morrison's Chinese Bible, as well as Liang Afa's evangelistic pamphlet, and announced to his followers that Christianity in fact had been the religion of ancient China before Confucius and his followers drove it out. He formed the Taiping Movement, which emerged in South China as a "collusion of the Chinese tradition of millenarian rebellion and Christian messianism", "apocalyptic revolution, Christianity, and 'communist utopianism'".

After 1860, enforcement of the treaties allowed missionaries to spread their evangelization efforts outside Treaty Ports. Their presence created cultural and political opposition. Historian John K. Fairbank observed that "[t]o the scholar-gentry, Christian missionaries were foreign subversives, whose immoral conduct and teaching were backed by gunboats". In the next decades, there were 800 some conflicts between village Christians and non-Christians (jiao'an) mostly about non-religious issues, such as land rights or local taxes, but religious conflict often behind such cases. In the summer of 1900, as foreign powers contemplated the division of China, village youths, known as Boxers, who practiced Chinese martial arts and spiritual practices, reacted against Western power and churches, attacked and murdered Chinese Christians and foreign missionaries in the Boxer Uprising. The imperialist powers once again invaded and imposed a substantial indemnity. The Beijing government reacted by implementing substantial fiscal and administrative reforms but this defeat convinced many among the educated elites that popular religion was an obstacle to China's development as a modern nation, and some turned to Christianity as a spiritual tool to build one.

By 1900, there were about 1,400 Catholic priests and nuns in China serving nearly 1 million Catholics. Over 3,000 Protestant missionaries were active among the 250,000 Protestant Christians in China. Western medical missionaries established clinics and hospitals, and led medical training in China. Missionaries began establishing nurse training schools in the late 1880s, but nursing of sick men by women was rejected by local tradition, so the number of students was small until the 1930s.

Economy
By the end of the 17th century, the Chinese economy had recovered from the devastation caused by the wars in which the Ming dynasty were overthrown, and the resulting breakdown of order. In the following century, markets continued to expand as in the late Ming period, but with more trade between regions, a greater dependence on overseas markets and a greatly increased population. By the end of the 18th century the population had risen to 300 million from approximately 150 million during the late Ming dynasty. The dramatic rise in population was due to several reasons, including the long period of peace and stability in the 18th century and the import of new crops China received from the Americas, including peanuts, sweet potatoes and maize. New species of rice from Southeast Asia led to a huge increase in production. Merchant guilds proliferated in all of the growing Chinese cities and often acquired great social and even political influence. Rich merchants with official connections built up huge fortunes and patronized literature, theater and the arts. Textile and handicraft production boomed.

The government broadened land ownership by returning land that had been sold to large landowners in the late Ming period by families unable to pay the land tax. To give people more incentives to participate in the market, they reduced the tax burden in comparison with the late Ming, and replaced the corvée system with a head tax used to hire laborers. The administration of the Grand Canal was made more efficient, and transport opened to private merchants. A system of monitoring grain prices eliminated severe shortages, and enabled the price of rice to rise slowly and smoothly through the 18th century. Wary of the power of wealthy merchants, Qing rulers limited their trading licenses and usually refused them permission to open new mines, except in poor areas. These restrictions on domestic resource exploration, as well as on foreign trade, are held by some scholars as a cause of the Great Divergence, by which the Western world overtook China economically.[citation needed]

During the Ming–Qing period (1368–1911) the biggest development in the Chinese economy was its transition from a command to a market economy, the latter becoming increasingly more pervasive throughout the Qing's rule. From roughly 1550 to 1800 China proper experienced a second commercial revolution, developing naturally from the first commercial revolution of the Song period which saw the emergence of long-distance inter-regional trade of luxury goods. During the second commercial revolution, for the first time, a large percentage of farming households began producing crops for sale in the local and national markets rather than for their own consumption or barter in the traditional economy. Surplus crops were placed onto the national market for sale, integrating farmers into the commercial economy from the ground up. This naturally led to regions specializing in certain cash-crops for export as China's economy became increasingly reliant on inter-regional trade of bulk staple goods such as cotton, grain, beans, vegetable oils, forest products, animal products, and fertilizer.

Silver
Silver entered in large quantities from mines in the New World after the Spanish conquered the Philippines in the 1570s. The re-opening of the southeast coast, which had been closed in the late 17th century, quickly revived trade, which expanded at 4% per annum throughout the latter part of the 18th century. China continued to export tea, silk and manufactures, creating a large, favorable trade balance with the West. The resulting expansion of the money supply supported competitive and stable markets. During the mid-Ming China had gradually shifted to silver as the standard currency for large scale transactions and by the late Kangxi reign the assessment and collection of the land tax was done in silver. Landlords began only accepting rent payments in silver rather than in crops themselves, which in turn incentivized farmers to produce crops for sale in local and national markets rather than for their own personal consumption or barter. Unlike the copper coins, qian or cash, used mainly for smaller transactions, silver was not reliably minted into a coin but rather was traded in units of weight: the liang or tael, which equaled roughly 1.3 ounces of silver. A third-party had to be brought in to assess the weight and purity of the silver, resulting in an extra "meltage fee" added on to the price of transaction. Furthermore, since the "meltage fee" was unregulated until the reign of the Yongzheng emperor it was the source of much corruption at each level of the bureaucracy. The Yongzheng emperor cracked down on the corrupt "meltage fees," legalizing and regulating them so that they could be collected as a tax, "returning meltage fees to the public coffer." From this newly increased public coffer, the Yongzheng emperor increased the salaries of the officials who collected them, further legitimizing silver as the standard currency of the Qing economy.

Urbanization and the proliferation of market-towns
The second commercial revolution also had a profound effect on the dispersion of the Qing populace. Up until the late Ming there existed a stark contrast between the rural countryside and city metropoles and very few mid-sized cities existed. This was due to the fact that extraction of surplus crops from the countryside was traditionally done by the state and not commercial organizations. However, as commercialization expanded exponentially in the late-Ming and early-Qing, mid-sized cities began popping up to direct the flow of domestic, commercial trade. Some towns of this nature had such a large volume of trade and merchants flowing through them that they developed into full-fledged market-towns. Some of these more active market-towns even developed into small-cities and became home to the new rising merchant-class. The proliferation of these mid-sized cities was only made possible by advancements in long-distance transportation and methods of communication. As more and more Chinese-citizens were travelling the country conducting trade they increasingly found themselves in a far-away place needing a place to stay, in response the market saw the expansion of guild halls to house these merchants.

Full-fledged trade guilds emerged, which, among other things, issued regulatory codes and price schedules, and provided a place for travelling merchants to stay and conduct their business. Along with the huiguan trade guilds, guild halls dedicated to more specific professions, gongsuo, began to appear and to control commercial craft or artisanal industries such as carpentry, weaving, banking, and medicine. By the nineteenth century guild halls worked to transform urban areas into cosmopolitan, multi-cultural hubs, staged theatre performances open to general public, developed real estate by pooling funds together in the style of a trust, and some even facilitated the development of social services such as maintaining streets, water supply, and sewage facilities.

Trade with the West
In 1685 the Kangxi emperor legalized private maritime trade along the coast, establishing a series of customs stations in major port cities. The customs station at Canton became by far the most active in foreign trade and by the late Kangxi reign more than forty mercantile houses specializing in trade with the West had appeared. The Yongzheng emperor made a parent corporation comprising those forty individual houses in 1725 known as the Cohong system. Firmly established by 1757, the Canton Cohong was an association of thirteen business firms that had been awarded exclusive rights to conduct trade with Western merchants in Canton. Until its abolition after the Opium War in 1842, the Canton Cohong system was the only permitted avenue of Western trade into China, and thus became a booming hub of international trade by the early eighteenth century. By the eighteenth century the most significant export China had was tea. British demand for tea increased exponentially up until they figured out how to grow it for themselves in the hills of northern India in the 1880s. By the end of the eighteenth century tea exports going through the Canton Cohong system amounted to one-tenth of the revenue from taxes collected from the British and nearly the entire revenue of the British East India Company and until the early nineteenth century tea comprised ninety percent of exports leaving Canton.

Science and technology
Chinese scholars, court academies, and local officials carried on late Ming dynasty strengths in astronomy, mathematics, and geography, as well as technologies in ceramics, metallurgy, water transport, printing. Contrary to stereotypes in some Western writing, 16th and 17th century Qing dynasty officials and literati eagerly explored the technology and science introduced by Jesuit missionaries. Manchu leaders employed Jesuits to use cannon and gunpowder to great effect in the conquest of China, and the court sponsored their research in astronomy. The aim of these efforts, however, was to reform and improve inherited science and technology, not to replace it. Scientific knowledge advanced during the Qing, but there was not a change in the way this knowledge was organized or the way scientific evidence was defined or its truth tested. Those who studied the physical universe shared their findings with each other and identified themselves as men of science, but they did not have a separate and independent professional role with its own training and advancement. They were still literati.

The Opium Wars, however, demonstrated the power of steam engine and military technology that had only recently been put into practice in the West. During the Self-Strengthening Movement of the 1860s and 1870s Confucian officials in several coastal provinces established an industrial base in military technology. The introduction of railroads into China raised questions that were more political than technological. A British company built the 19 km (12 mi) Shanghai—Woosung line in 1876, obtaining the land under false pretenses, and it was soon torn up. Court officials feared local public opinion and that railways would help invaders, harm farmlands, and obstruct feng shui. To keep development in Chinese hands, the Qing government borrowed 34 billion taels of silver from foreign lenders for railway construction between 1894 and 1911. As late as 1900, only 470 km (292 mi) were in operation, with a further 6,400 km (4,000 mi) in the planning stage. Finally, 8,400 km (5,200 mi) of railway was completed. The British and French after 1905 were finally able to open lines to Burma and Vietnam.

Protestant missionaries by the 1830s translated and printed Western science and medical textbooks. The textbooks found homes in the rapidly enlarging network of missionary schools, and universities. The textbooks opened learning open possibilities for the small number of Chinese students interested in science, and a very small number interested in technology. After 1900, Japan had a greater role in bringing modern science and technology to Chinese audiences but even then they reached chiefly the children of the rich landowning gentry, who seldom engaged in industrial careers.

Arts and culture
Under the Qing, inherited forms of art flourished and innovations occurred at many levels and in many types. High levels of literacy, a successful publishing industry, prosperous cities, and the Confucian emphasis on cultivation all fed a lively and creative set of cultural fields.

By the end of the nineteenth century, national artistic and cultural worlds had begun to come to terms with the cosmopolitan culture of the West and Japan. The decision to stay within old forms or welcome Western models was now a conscious choice rather than an unchallenged acceptance of tradition. Classically trained Confucian scholars such as Liang Qichao and Wang Guowei read widely and broke aesthetic and critical ground later cultivated in the New Culture Movement.

Fine arts
The Qing emperors were generally adept at poetry and often skilled in painting, and offered their patronage to Confucian culture. The Kangxi and Qianlong Emperors, for instance, embraced Chinese traditions both to control them and to proclaim their own legitimacy. The Kangxi Emperor sponsored the Peiwen Yunfu, a rhyme dictionary published in 1711, and the Kangxi Dictionary published in 1716, which remains to this day an authoritative reference. The Qianlong Emperor sponsored the largest collection of writings in Chinese history, the Siku Quanshu, completed in 1782. Court painters made new versions of the Song masterpiece, Zhang Zeduan's Along the River During the Qingming Festival, whose depiction of a prosperous and happy realm demonstrated the beneficence of the emperor. The emperors undertook tours of the south and commissioned monumental scrolls to depict the grandeur of the occasion. Imperial patronage also encouraged the industrial production of ceramics and Chinese export porcelain. Peking glassware became popular after European glass making processes were introduced by Jesuits to Beijing.

Yet the most impressive aesthetic works were done among the scholars and urban elite. Calligraphy and painting remained a central interest to both court painters and scholar-gentry who considered the four arts part of their cultural identity and social standing. The painting of the early years of the dynasty included such painters as the orthodox Four Wangs and the individualists Bada Shanren (1626–1705) and Shitao (1641–1707). The nineteenth century saw such innovations as the Shanghai School and the Lingnan School, which used the technical skills of tradition to set the stage for modern painting.

Traditional learning and literature
Traditional learning flourished, especially among Ming loyalists such as Dai Zhen and Gu Yanwu, but scholars in the school of evidential learning made innovations in skeptical textual scholarship. Scholar-bureaucrats, including Lin Zexu and Wei Yuan, developed a school of practical statecraft which rooted bureaucratic reform and restructuring in classical philosophy.

Philosophy and literature grew to new heights in the Qing period. Poetry continued as a mark of the cultivated gentleman, but women wrote in larger and larger numbers and poets came from all walks of life. The poetry of the Qing dynasty is a lively field of research, being studied (along with the poetry of the Ming dynasty) for its association with Chinese opera, developmental trends of Classical Chinese poetry, the transition to a greater role for vernacular language, and for poetry by women. The Qing dynasty was a period of literary editing and criticism, and many of the modern popular versions of Classical Chinese poems were transmitted through Qing dynasty anthologies, such as the Quan Tangshi and the Three Hundred Tang Poems. Although fiction did not have the prestige of poetry, novels flourished. Pu Songling brought the short story to a new level in his Strange Tales from a Chinese Studio, published in the mid-18th century, and Shen Fu demonstrated the charm of the informal memoir in Six Chapters of a Floating Life, written in the early 19th century but published only in 1877. The art of the novel reached a pinnacle in Cao Xueqin's Dream of the Red Chamber, but its combination of social commentary and psychological insight were echoed in highly skilled novels such as Wu Jingzi's Rulin waishi (1750) and Li Ruzhen's Flowers in the Mirror (1827).

Cuisine
Cuisine aroused a cultural pride in the richness of a long and varied past. The gentleman gourmet, such as Yuan Mei, applied aesthetic standards to the art of cooking, eating, and appreciation of tea at a time when New World crops and products entered everyday life. Yuan's Suiyuan Shidan expounded culinary aesthetics and theory, along with a range of recipes. The Manchu–Han Imperial Feast originated at the court. Although this banquet was probably never common, it reflected an appreciation of Manchu culinary customs. Nevertheless, culinary traditionalists such as Yuan Mei lambasted the opulence of the Manchu Han Feast. Yuan wrote that the feast was caused in part by the "vulgar habits of bad chefs" and that "displays this trite are useful only for welcoming new relations through one's gates or when the boss comes to visit". (皆惡廚陋習. 只可用之於新親上門，上司入境)

Nationalism
After 1912, writers, historians and scholars in China and abroad generally deprecated the failures of the late imperial system. However, in the 21st century, a favorable view has emerged in popular culture. Building pride in Chinese history, nationalists have portrayed Imperial China as benevolent, strong and more advanced than the West. They blame ugly wars and diplomatic controversies on imperialist exploitation by Western nations and Japan. Although officially still communist and Maoist, in practice China's rulers have used this grassroots settlement to proclaim that their current policies are restoring China's historical glory. Chinese Communist Party General Secretary Xi Jinping has sought parity between Beijing and Washington and promised to restore China to its historical glory.