Lifan Yuan
Güshi Khan, founder of the Khoshut Khanate overthrew the prince of Tsang and made the 5th Dalai Lama the highest spiritual and political authority in Tibet, establishing the regime known as Ganden Phodrang in 1642. The Dzungar Khanate under Tsewang Rabtan invaded Tibet in 1717, deposed the pretender to the position of Dalai Lama of Lha-bzang Khan, the last ruler of the Khoshut Khanate, and killed Lha-bzang Khan and his entire family. In response, an expedition sent by the Kangxi Emperor of the Qing dynasty, together with Tibetan forces under Polhané Sönam Topgyé of Tsang and Kangchennas (also spelled Gangchenney), the governor of Western Tibet, expelled the Dzungars from Tibet in 1720 as patrons of the Khoshut and liberators of Tibet from the Dzungars. This began the Qing administrative rule of Tibet, which lasted until the fall of the Qing dynasty in 1912, although the region retained a degree of political autonomy under the Dalai Lamas. The Qing emperors appointed imperial residents known as the Ambans to Tibet, who commanded over 2,000 troops stationed in Lhasa and reported to the Lifan Yuan.