The Dutch left Fort Zeelandia in Taiwan in 1662 following their defeat by Koxinga at the Siege of Fort Zeelandia, who continued the policy of increasing Han Chinese immigration until the surrender of his grandson Zheng Keshuang to the Qing Dynasty in 1683. In 1668, the Dutch left Keelung after getting harassed by aboriginals from Tamsui.