The 17th-century struggles for domination between the Manchu-led Qing dynasty and the various Mongol groups spilled over to involve Tibet because of the Fifth Dalai Lama's strong influence over the Mongols as a result of their general adoption of Tibetan Buddhism and their consequent deep loyalty to the Dalai Lama as their guru. Until 1674, the Fifth Dalai Lama had mediated in Dzungar Mongol affairs whenever they required him to do so, and the Kangxi Emperor, who had succeeded the Shunzhi Emperor in 1661, would accept and confirm his decisions automatically. For the Kangxi Emperor however, the alliance between the Dzungar Mongols and the Tibetans was unsettling because he feared it had the potential to unite all the other Mongol tribes together against the Qing Empire, including those tribes who had already submitted. Therefore, in 1674, the Kangxi Emperor, annoyed by the Fifth's less than full cooperation in quelling a rebellion against the Qing in Yunnan, ceased deferring to him as regards Mongol affairs and started dealing with them directly.