The Qing Dynasty ruled China from 1644 to 1912. It was the last imperial dynasty of China, established by the Manchus. The Qing conquered China and expanded its territory, but faced internal rebellions like the Taiping Rebellion and external threats from European imperialism. The Opium Wars weakened China and led to unequal treaties. By the late 1800s, China was divided into foreign spheres of influence and faced domestic calls for reform as the Qing struggled to modernize and strengthen China in the face of Western encroachment.