 Scattered Ming remnants held out after 1644 , including that of Koxinga ( Zheng Chenggong ) who established the Kingdom of Tungning on Taiwan ( Formosa ) . Despite the loss of Beijing and the death of the emperor , Ming power was by no means totally destroyed . Nanjing , Fujian , Guangdong , Shanxi , and Yunnan were all strongholds of Ming resistance . However , there were several pretenders for the Ming throne , and their forces were divided . Each bastion of resistance was individually defeated by the Qing until 1662 , when the last southern Ming Emperor died , the Yongli Emperor , Zhu Youlang . The last Ming Princes to hold out were the Prince of Ningjing Zhu Shugui and the son of Zhu Yihai , the Prince of Lu Zhu Honghuan ( 朱弘桓 ) who stayed with Koxinga 's Ming loyalists in the Kingdom of Tungning until 1683 . Zhu Shugui was acting in the name of the dead Yongli Emperor . The Qing then sent the 17 Ming princes still living on Taiwan back to mainland China where they spent the rest of their lives . 
