The problems faced by the Qing dynasty (1644–1912) began to mount in the early decades of the nineteenth century. Its first taste of what lay in wait was its defeat by Britain in the First Opium War (1839–42). Then, around the middle of the century, as economic difficulties began to grow, the Qing were shaken by a series of local revolts together with four major rebellions:

