structural:expansion, information:classification
The Taiping Rebellion, also known as the Taiping Civil War or the Taiping Revolution, was a civil war in China between the Manchu -led Qing dynasty and the Hakka -led Taiping Heavenly Kingdom. The conflict lasted for 14 years, from its outbreak in 1850 until the fall of Taiping-controlled Nanjing —which they had renamed Tianjing "heavenly capital"—in 1864. However, the last rebel forces were not defeated until August 1871. Estimates of the conflict's death toll range between 20 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 had 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. Moreover, rather than supplanting China's ruling class, the Taiping rebels sought to entirely upend the country's social order. The Taiping Heavenly Kingdom located at Nanjing managed to seize control of significant portions of southern China. At its peak, the Heavenly Kingdom ruled over a population of nearly 30 million people.

For more than a decade, Taiping armies occupied and fought across much of the mid- and lower Yangtze valley, ultimately devolving into total civil war. It was the largest war in China since the Ming–Qing transition, involving most of Central and Southern China. It ranks as one of the bloodiest wars in human history, the bloodiest civil war, and the largest conflict of the 19th century. In terms of deaths, it is comparable to World War I. Thirty million people fled the conquered regions to foreign settlements or other parts of China. The war was characterized by extreme brutality on both sides. Taiping soldiers carried out widespread massacres of Manchus, the ethnic minority of the ruling Imperial House of Aisin-Gioro. Meanwhile, the Qing government also engaged in massacres, most notably against the civilian population of Nanjing.

Weakened severely by internal conflicts following an attempted coup and the failure of the siege of Beijing, the Taiping rebels were defeated by decentralised provincial armies such as the Xiang Army organised and commanded by Zeng Guofan. After moving down the Yangtze River and recapturing the strategic city of Anqing, Zeng's forces besieged Nanjing during May 1862. After two more years, on June 1, 1864, Hong Xiuquan died during the siege, caused from the consumption of weeds in the palace grounds as well as suspicions of poison. Nanjing fell barely a month later. The 14-year civil war as a whole coincided with internal and external conflicts of the Opium Wars and the future Boxer Rebellion to further weaken the Qing dynasty’s grasp on central China. The Taiping rebellion gave incentive for an initially successful period of reform and self-strengthening although shadowed by social and religious unrest within the country exacerbating ethnic disputes and accelerating the rise of provincial power. Historians debate whether these developments played a role in the start of the Warlord Era, the loss of central control after the establishment of Republic of China in 1912.