invasion Orders from the Kangxi Emperor to invade Taiwan reached Yao Qisheng and Shi Lang on 6 June 1682. The invasion fleet was met with unfavorable winds and was forced to turn back. Yao proposed a five-month postponement of the invasion to wait for favorable winds in November. Conflict between Yao and Shi led to Yao's removal from power in November. On 18 November 1682, Shi Lang was authorized to assume the role of supreme commander while Yao was relegated to logistical matters. Supplies arrived for Shi's 21,000 troops, 70 large warships, 103 supply ships, and 65 double mast vessels in early December. Spy ships were sent to scout Penghu and returned safely. Two attempts to sail to Penghu in February 1683 failed due to a shift in winds. Shi's fleet of 238 ships and over 21,000 men set sail on 8 July 1683. Liu Guoxuan, the commander of 30,000 men at Penghu, considered the movement a false alarm and believed Shi would turn back. The next day, Shi's fleet was sighted at small islands to the northwest of Penghu. The Qing forces were met by 200 Zheng ships. Following an exchange of gunfire, the Qing were forced to retreat with two Zheng naval commanders, Qiu Hui and Jiang Sheng, in pursuit. The Qing vanguard led by Admiral Lan Li provided cover fire for a withdrawal. Shi was hit in the right eye and Lan was wounded in the stomach during the fighting. The Zheng side also suffered heavy losses, making Liu reluctant to pursue the disarrayed Qing forces. He reported a "great victory" back to Taiwan. On 11 July, Shi regrouped his squadrons and requested reinforcements at Bazhao. On 16 July, a reinforcement of large ships arrived. Shi divided the main striking force into eight squadrons of seven ships with himself leading from the middle. Two flotillas of 50 small ships sailed in two different directions as a diversion. The remaining vessels served as rear reinforcements. The battle took place in the bay of Magong. The Zheng garrison fired at the Qing ships and then set sail from the harbor with about 100 ships to meet the Qing forces. Shi concentrated fire on one big enemy ship at a time until all of Zheng's battle ships were sunk by the end of 17 July. Liu escaped to Taiwan with dozens of small vessels. Approximately 12,000 Zheng men perished. The