In 1681, following the Revolt of the Three Feudatories, the Kangxi Emperor sought a possible leader for an amphibious operation against Taiwan. Following the advice of Li Guangdi, he chose Shi Lang. Shi Lang insisted on having an independent command, not one shared with Yao Qisheng, the Governor-General of Fujian. On 8 July 1683, after extensive preparation, Shi Lang led a force of 300 warships and 20,000 soldiers out of Tongshan, Fujian. On 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.