The Taiping Rebellion, also known as the Taiping Civil War, Revolution, or Movement, was a civil war in China between the Qing dynasty and the Taiping Heavenly Kingdom. The conflict lasted 14 years, from its outbreak in 1850 until the fall of Taiping-controlled Nanjing—which they had renamed Tianjing "heavenly capital"—in 1864. The last rebel forces were defeated in August 1871. Estimates of the conflict's death toll range between 20 million and 30 million people, representing 5–10% of China's population at that time. While the Qing ultimately defeated the rebellion, the victory came at a great cost to the state's economic and political viability.
The uprising was led by Hong Xiuquan, an ethnic Hakka who proclaimed himself to be the brother of Jesus Christ. Hong sought the religious conversion of the Han people to his syncretic version of Christianity, as well as the political overthrow of the Qing dynasty, and a general transformation of the mechanisms of state. Rather than supplanting China's ruling class, the Taiping rebels sought to entirely upend the country's social order. The Taiping Heavenly Kingdom in Nanjing seized control of significant portions of southern China. At its peak, the Heavenly Kingdom ruled over a population of nearly 30 million.