The Revolt of the Three Feudatories was the rising of 1673-1681 (the twelfth to twentieth years of Kangxi) by Wu Sangui, Shang Zhixin and Geng Jingzhong, the three feudatory princes. The early Qing had set surrendered Han generals to hold the southern marches: Wu Sangui, Prince Pingxi, in Yunnan; Shang Kexi, Prince Pingnan, in Guangdong; Geng Jingzhong, Prince Jingnan, in Fujian — each with his own army, each draining the treasury, half the realm's revenue spent on the three. In 1673 Shang Kexi petitioned to resign his fief and retire; Wu and Geng sent like petitions to test the court — and the Kangxi Emperor, overriding his councilors, granted them all. Wu Sangui killed the Yunnan governor and rose in arms, Geng and Shang followed, Sun Yanling and Wang Fuchen answered, and the revolt spread across Yunnan, Guizhou, Sichuan, Hunan, Fujian, Guangdong, Shaanxi and Gansu — half the empire shaking. The Wu armies at one point reached the Yangtze; the emperor's resolve never bent: Han generals and Han troops were promoted and trusted, the rebels split by pardon — Wang Fuchen forgiven, Geng Jingzhong received — while Wu Sangui was hunted without pause; in 1678 Wu enthroned himself at Hengzhou and died within the year, his grandson Wu Shifan succeeding. In 1681 the Qing armies closed on Kunming, Shifan killed himself, and the three feudatories were done. The fiefs were abolished and the armies recalled; in 1683 the Zheng regime of Taiwan submitted — the sea frontier and the mainland one realm, the Qing zenith opening from this victory, and the emperor's principle that 'all power under heaven belongs to the court' confirmed by the test.