Zheng Chenggong (Koxinga) had died in 1662. His descendants resisted Qing rule until 1683, when the Kangxi Emperor dispatched Shi Lang with a fleet of 300 ships to take the Ming loyalist Kingdom of Tungning in Taiwan in 1683 from the Zheng family. Zheng Chenggong's grandson Zheng Keshuang surrendered Taiwan to the Kangxi Emperor after the Battle of Penghu. Having lost the Battle of Penghu, Zheng Keshuang surrendered and was rewarded by the Kangxi Emperor with the title "Duke of Haicheng" (). He and his soldiers were inducted into the Eight Banners. His rattan shield troops ( "tengpaiying") served against Russian Cossacks at Albazin.