Beijing was taken by a rebel army under Li Zicheng, and the last Ming emperor hanged himself. The Manchus- after being let through the Great Wall by a Ming general- marched south, defeated Li Zicheng, and took the capital.