Having vanquished the Dzungars, the Qing army withdrew leaving the Seventh Dalai Lama as a political figurehead and only a Khalkha Mongol as the Qing "amban" or representative and a garrison in Lhasa. After the Kangxi Emperor died in 1722 and was succeeded by his son, the Yongzheng Emperor, these were also withdrawn, leaving the Tibetans to rule autonomously and showing the Qing were interested in an alliance, not conquest. In 1723, however, after brutally quelling a major rebellion by zealous Tibetan patriots and disgruntled Khoshut Mongols from Amdo who attacked Xining, the Qing intervened again, splitting Tibet by putting Amdo and Kham under their own more direct control. Continuing Qing interference in Central Tibetan politics and religion incited an anti-Qing faction to quarrel with the Qing-sympathising Tibetan nobles in power in Lhasa, led by Kanchenas who was supported by Polhanas. This led eventually to the murder of Kanchenas in 1727 and a civil war that was resolved in 1728 with the canny Polhanas, who had sent for Qing assistance, the victor. When the Qing forces did arrive they punished the losers and exiled the Seventh Dalai Lama to Kham, under the pretence of sending him to Beijing, because his father had assisted the defeated, anti-Qing faction. He studied and taught Buddhism there for the next seven years.