July 16–17, he defeated the Zheng family's leading naval commander, Liu Guoxuan, in a major engagement near the Pescadores. On 5 September, Shi Lang received Zheng Keshuang's offer to surrender. On 3 October, he reached Taiwan and formally obtained the capitulation of Liu Guoxuan and Zheng Keshuang. Following this successful campaign, Shi Lang returned to the Chinese mainland and worked hard to persuade the Kangxi Emperor to make Taiwan part of China's recognized territory. At the time, there was opposition among many within the Qing government toward the annexation of Taiwan, arguing that its maintenance would become an economic burden on the empire. However, the Kangxi Emperor accepted Shi Lang's views, and in 1684 Taiwan was divided into three counties and established as a prefecture of Fujian province. Shi Lang was declared the "General Who Maintains Peace on the Seas" () and given the hereditary rank of marquis. At his own request, he was specially granted the privilege of wearing an honorary peacock feather. Shi Lang continued at his post in Fujian, seizing almost half of the developed land in southern Taiwan for his own profit. Shi annually extorted monetary resources from rich and poor local communities alike, and instituted policies that deliberately aimed to isolate Taiwan from the rest of the Qing Empire – coastal provinces were forbidden to interact with Taiwan, and even people from inland provinces were disallowed to bring their families with them, effectively preventing them from making any permanent foothold in Taiwan. Although he was later charged with arrogance, in 1688 the Kangxi Emperor received Shi Lang in audience in Beijing and allowed him to sit in the imperial presence, reiterating his confidence in him. Shi Lang returned to Fujian and remained in office there until his death in 1696. Legacy Shi Lang was given the posthumous name "Xiangzhuang" (), and the title of Junior Tutor to the Heir Apparent. In 1732, his name was entered for worship in the Temple of Eminent Statesmen. One of his sons achieved distinction as an admiral, whilst another was a state official. The Shi family was granted the special privilege of burial in their ancestral cemetery in Jinjiang, instead of in Banner lands as was the case with other Bannermen. Though famous for his military achievements, Shi Lang remains a controversial figure in contemporary China. He is generally denounced as a traitorous figure who abandoned the Ming loyalist