The Kangxi Emperor, given name Xuanye, third son of the Shunzhi Emperor and second Qing ruler after the conquest, took the throne in 1661 at eight and personal rule at fourteen, trapping the regent Oboi by his own device in 1669 to take the helm. From 1673 to 1681 he suppressed the Revolt of the Three Feudatories of Wu Sangui and his fellows; in 1683 he sent Shi Lang to take Taiwan into the Qing domain. He organized the defense of Albazin against Russian advance, and in 1689 signed the Treaty of Nerchinsk fixing the eastern Sino-Russian border. Between 1690 and 1697 he three times campaigned in person against Galdan, chief of the Dzungars, and at the Dolon Nor assembly settled the Khalkha Mongols under closer Qing oversight. He fostered farming and river works, letters and learning — the great compilations under his name include the Kangxi Dictionary — and six times toured the south to inspect the rivers and the officials. His sixty-one years make him the longest-reigning emperor in Chinese history; his rule and his grandson the Qianlong Emperor's together bear the name of the High Qing.