The Qing rule over Tibet was established after a Qing expedition force defeated the Dzungars who occupied Tibet in 1720, and lasted until the fall of the Qing dynasty in 1912. 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, a Qing government agency that oversaw the region during this period.[60] During this era, the region was dominated by the Dalai Lamas with the support from the Qing dynasty established by the Manchus in China.