The correct response is:
The Qing dynasty faced rebellions and wars after the Treaty of Nanking. This led to its collapse.
After the signing of the Treaty of Nanking in 1842, which marked the end of the First Opium War and imposed significant concessions on China, the Qing dynasty faced a series of internal and external challenges. This included the Taiping Rebellion (1850-1864) and later conflicts such as the Second Opium War, the First Sino-Japanese War, and the Boxer Rebellion. These events weakened the Qing regime and contributed to its eventual collapse during the Xinhai Revolution, which started in 1911 and led to the establishment of the Republic of China in 1912.