臺灣府
The death of Zheng Jing in 1681 was followed by a struggle for succession. Seizing the advantage presented by the infighting, on July 17, 1683, Qing naval commander Shi Lang defeated the Tungning fleet in the Battle of Penghu. Two days later, Qing troops landed at Tungning and encountered little resistance. In 1684 the kingdom was incorporated into the Qing Empire as part of Fujian province, ending two decades of rule by the Zheng family. Taiwan Prefecture was established, with its prefectural seat Taiwanfu at modern-day Tainan.