For the next 19 years, Zheng Jing tried to run the country and rebuild his army in Taiwan. Contact with the Kangxi Emperor of the Qing Dynasty from the China through ambassadors was frequent. Zheng Jing fought the Qing to defend Xiamen, Quemoy and the Pescadores islands, which he finally lost over the years. His small army army was not big enough to defend the islands from the Qing. During Revolt of the Three Feudatories, Zheng Jing started an attack in the Fujian area. At the end of the revolt, Zheng's army was defeated. After the defeat, Zheng went back to Taiwan where he spent his time with wine and women, dying soon after of illness. After his death, his generals and ministers were split into two groups, each supporting one of his sons to take take over. After some fighting, Zheng Keshuang, his 12 year old son, became the new king.