In 1675, the commander of Chaozhou, Liu Jingzhong, defected to Zheng. After Geng and other rebels surrendered to the Qing in 1676 and 1677, the tide turned against the Zheng forces. Quanzhou was lost to the Qing on 12 March 1677 and then Zhangzhou and Haicheng on 5 April. Zheng forces counterattacked and retook Haicheng in August. Zheng naval forces blockaded Quanzhou and tried to retake the city in August 1678 but they were forced to retreat in October when Qing reinforcements arrived. Zheng forces suffered heavy casualties in a battle in January 1679. On 6 March 1680, the Qing fleet led by Admiral Wan Zhengse moved against Zheng naval forces near Quanzhou and defeated them on 20 March with assistance from land-based artillery. The sudden retreat of Zheng naval forces caused widespread panic on land and many Zheng commanders and soldiers defected to the Qing. Xiamen was abandoned. On 10 April, Zheng Jing's war on the mainland came to a close. Zheng Jing died in early 1681. End of Zheng rule Shi Lang Admiral Shi Lang was the primary leader in advocating and organizing the Qing effort to conquer Zheng Taiwan. He was born in Jinjiang, Fujian in 1621 and became a soldier in the service of Zheng Zhilong at the age of 17. Shi served with distinction until he had a falling out with Zheng Chenggong. He quarreled with another commander, Chen Bin, and Chenggong took Chen's side. Shi also disagreed with Chenggong on strategic matters. Shi threatened to leave and become a monk, which annoyed Chenggong. Chenggong eventually imprisoned Shi for criticizing his behavior, which Shi described as being no different than that of a pirate. A relative of Shi's falsified orders from Chenggong to take Shi out for interrogation and he seized the opportunity to escape. Shi tried to seek mediation with Chenggong but his efforts failed and instead Chenggong sent an assassin after him. The assassination attempt failed. Chenggong executed Shi's father and brother in 1651, resulting in Shi's defection to the Qing. Shi was assigned to follow Geng Jimao and pacify Ming loyalists in Guangdong and Guangxi before returning to Fujian in 1655. Shi was assigned to an assault force on a Zheng stronghold at the suggestion of another commander, Huang Wu, who had also defected from the Zheng side. The successful attack saw the surrender of Chen Bin and execution of 500 Zheng