In the sixteenth year of the Chongzhen reign, the emperor neglected state affairs, while forced labor and taxes weighed heavily on the people. The common folk took up arms, raising the cry, "Open the city gates and welcome the Prince of Shun," and marched north, seeking to capture the capital.
In the seventeenth year of the Chongzhen reign, the peasant rebels led by Li Zicheng stormed through the city gates. The Chongzhen Emperor, Zhu Youjian, hanged himself, and the Ming dynasty fell.
As the Great Shun regime was being established, Prince of Shun Li Zicheng failed to learn from the fall of the Ming. He disregarded the people's welfare and spent every day lost in drink and women. Meanwhile, Wu Sangui, a Ming general stationed at Shanhaiguan, threw open the gates and let the Qing army into the pass. The Qing cavalry swept forward like a storm, unstoppable. They defeated Li Zicheng, marched on Beijing, and made it their capital.
The remnants of the Ming dynasty and the peasant Protect-the-Nation Army led by Ge Chengtian fought the Qing with wit and courage. After more than twenty years of bloody struggle, Ge Chengtian was killed at Yangpo when a Ming remnant general betrayed them. The remaining Ming forces in the south were defeated one by one, and the Qing established control over the entire country.