These Dzungars, who were Buddhist, had supported the Fifth Dalai Lama and his regent. They were secretly petitioned by the Lhasa Gelugpa lamas to invade with their help in order to rid them of their foreign ruler Lhazang Khan and to replace the unpopular Sixth Dalai Lama pretender with the young Kelzang Gyats. This plot suited the devious Dzungar leaders' ambitions and they were only too happy to oblige. Early in 1717, after conspiring to undermine Lhazang Khan through treachery they entered Tibet from the northwest with a large army, sending a smaller force to Kumbum to collect Kelzang Gyatso and escort him to Lhasa. By the end of the year, with Tibetan connivance they had captured Lhasa, killed Lhazang and all his family and deposed Yeshe Gyatso. Their force sent to fetch Kelzang Gyatso however was intercepted and destroyed by Qing armies alerted by Lhazang. In Lhasa, the unruly Dzungar not only failed to produce the boy but also went on the rampage, looting and destroying the holy places, abusing the populace, killing hundreds of Nyingma monks, causing chaos and bloodshed and turning their Tibetan allies against them. The Tibetans were soon appealing to the Kangxi Emperor to rid them of the Dzungars.