<Tr> <Td> Republic of China </Td> <Td> </Td> </Tr> <P> The Qing dynasty (English: / tʃ ɪŋ /), also known as the Qing Empire, officially the Great Qing, was the last imperial dynasty of China, established in 1636 and ruling China from 1644 to 1912 . It was preceded by the Ming dynasty and succeeded by the Republic of China . The Qing multi-cultural empire lasted almost three centuries and formed the territorial base for the modern Chinese state . It was the fourth - largest empire in world history . </P> <P> The dynasty was founded by the Jurchen Aisin Gioro clan in Manchuria . In the late 16th century, Nurhaci, originally a Ming vassal, began organising "Banners", military - social units that included Jurchen, Han Chinese and Mongol elements . Nurhaci formed the Jurchen clans into a unified entity, which he renamed as the Manchus . By 1636, his son Hong Taiji began driving Ming forces out of Liaodong and declared a new dynasty, the Qing . In 1644, peasant rebels led by Li Zicheng conquered the Ming capital, Beijing . Rather than serve them, Ming general Wu Sangui made an alliance with the Manchus and opened the Shanhai Pass to the Banner Armies led by the regent Prince Dorgon, who defeated the rebels and seized the capital . Resistance from the Southern Ming and the Revolt of the Three Feudatories led by Wu Sangui extended the conquest of China proper for nearly four decades and was not completed until 1683 under the Kangxi Emperor (r . 1661--1722). The Ten Great Campaigns of the Qianlong Emperor from the 1750s to the 1790s extended Qing control into Inner Asia . The early rulers maintained their Manchu ways, and while their title was Emperor, they used Bogd khaan to the Mongols, and they were patrons of Tibetan Buddhism . They governed using Confucian styles and institutions of bureaucratic government and retained the imperial examinations to recruit Han Chinese to work under or in parallel with Manchus . They also adapted the ideals of the tributary system in dealing with neighboring territories . </P> <P> During the Qianlong Emperor's reign (1735--96), the dynasty reached its apogee but then began its initial decline in prosperity and imperial control . The population rose to some 400 million, but taxes and government revenues were fixed at a low rate, virtually guaranteeing eventual fiscal crisis . Corruption set in, rebels tested government legitimacy and ruling elites failed to change their mindsets in the face of changes in the world system . Following the Opium War, European powers imposed unequal treaties, free trade, extraterritoriality and treaty ports under foreign control . The Taiping Rebellion (1850--64) and the Dungan Revolt (1862--77) in Central Asia led to the deaths of some 20 million people, most of them due to famines caused by war . In spite of these disasters, in the Tongzhi Restoration of the 1860s, Han Chinese elites rallied to the defence of the Confucian order and the Qing rulers . The initial gains in the Self - Strengthening Movement were destroyed in the First Sino - Japanese War of 1895, in which the Qing lost its influence over Korea and the possession of Taiwan . New Armies were organised, but the ambitious Hundred Days' Reform of 1898 was turned back in a coup by Empress Dowager Cixi, a conservative leader . When the Scramble for Concessions by foreign powers triggered the violently anti-foreign "Boxers", the foreign powers invaded China, Cixi declared war on them, leading to defeat and the flight of the Imperial Court to Xi'an . </P>

What was the role of confucianism in the qing dynasty
find me the text answering this question