Ablai Khan was a khan of the Middle jüz or Horde who managed to extend his control over the other two jüzes to include all of the Kazakhs. Before he became khan, Ablai participated in Kazakh-Dzungar Wars and proved himself a talented organizer and commander. He led numerous campaigns against the Kokand Khanate and the Kyrgyz. In the latter campaign, his troops liberated many cities in Southern Kazakhstan and even captured Tashkent. During his actual reign, Ablai Khan did his best to keep Kazakhstan as independent as possible from the encroaching Russian Empire and the Chinese Qing dynasty. He employed a multi-vector foreign policy to protect the tribes from Chinese and Dzungar aggressors. He also sheltered the Dzungar Oirat "taishas" Amursana and Dawachi from attacks by the Khoshut-Orait King of Tibet, Lha-bzang Khan, as the Dzungar Khanate fractured following the death of Galdan Tseren in 1745. However, once Amursana and Dawachi were no longer allies, Ablai Khan took the opportunity to capture herds and territory from the Dzungars.