Li Zicheng
In 1644, the Ming capital, Beijing, was sacked by a peasant revolt led by Li Zicheng, a former minor Ming official who became the leader of the peasant revolt, who then proclaimed the establishment of the Shun dynasty. The last Ming ruler, the Chongzhen Emperor, committed suicide by hanging himself when the city fell. When Li Zicheng moved against the Ming general Wu Sangui, the latter made an alliance with the Manchus and opened the Shanhai Pass to the Manchu army. After the Manchus defeated Li Zicheng, they moved the capital of their new Qing Empire to Beijing () in the same year.