The capture of Beijing by Li Zicheng's peasant army in 1644 ended the dynasty, but he and his Shun court abandoned the city without a fight when the Manchu army of Prince Dorgon arrived 40 days later.