The jiashen year's upheaval — the fall of the Ming in the third month of 1644 (the seventeenth year of Chongzhen) and the Qing entry through the passes that followed it — completed the dynastic transfer in one year. Li Zicheng, having proclaimed the Dashun at Xi'an, marched north from Shanxi in the second month, broke the Ningwu pass, invested Beijing on the seventeenth of the third month, and at dawn on the nineteenth the outer walls fell: Emperor Chongzhen hanged himself on Coal Hill, his last edict charging the conqueror not to harm the people. Li Zicheng entered the capital and the Ming was ended; Wu Sangui, holding Shanhaiguan, went over to the Qing, and in the fourth month Li led his army out against him — at the Battle of Shanhaiguan (the action at Yipianshi) Wu and the Qing cavalry broke the Dashun host. Li fell back on Beijing, enthroned in haste, and withdrew west; the Qing armies entered Beijing. In the tenth month the Shunzhi emperor fixed the capital at Yanjing — the Qing, from a regional power of the northeast, had become the state of all China; the armies then divided to march south, Yangzhou and Jiading suffering their massacres, until the Yongli emperor was killed in 1662 and the Southern Ming was done. Chongzhen's tragedy — frugal and diligent to the last, and the dynasty lost — and the Dashun's death inside forty days have been debated ever since (Guo Moruo's 'On the Three Hundredth Anniversary of Jiashen' took the lesson), and the Qing's near-270-year rule counts from this year.