In 1644, Dodo entered Ming territory after the Ming general Wu Sangui opened Shanhai Pass for the Qing armies. They defeated rebel forces under Li Zicheng at Shanhai Pass and occupied the Ming capital Beijing, after which Dodo was reinstated as a "qinwang" and appointed "Great General Who Pacifies the Nation" (定國大將軍). Together with Kong Youde and Geng Zhongming, Dodo led an army of 200,000, comprising both Manchu and Han Chinese soldiers, to attack the remnants of Li Zicheng's rebel army, defeating and driving the enemy from Henan to Shaanxi.