mixture between the invading Turkic peoples and the native Caucasian Indo-European inhabitants resulted in the modern day Turkic speaking hybrid Europoid-East Asian inhabitants of Xinjiang. The Turkification was carried out in the 9th and 10th centuries by two different Turkic Kingdoms, the Buddhist Uyghur Kingdom of Qocho and the Muslim Karluk Kara-Khanid Khanate. Halfway in the 10th century the Saka Iranic Buddhist Kingdom of Khotan came under attack by the Turkic Muslim Karakhanid ruler Musa, and in what proved to be a pivotal moment in the Turkification and Islamification of the Tarim Basin, the Karakhanid leader Yusuf Qadir Khan conquered Khotan around 1006. The Turkic Muslim sedentary people of the Tarim Basin of Altishahr were originally ruled by the Chagatai Khanate while the nomadic Buddhist Dzungar Oirats in Dzungaria ruled over the Dzungar Khanate. The Naqshbandi Sufi Khojas, descendants of the Prophet Muhammad, had replaced the Chagatayid Khans as the ruling authority of the Tarim Basin in the early 17th century. There was a struggle between two factions of Khojas, the Afaqi (White Mountain) faction and the Ishaqi (Black Mountain) faction. The Ishaqi defeated the Afaqi, which resulted in the Afaqi Khoja inviting the 5th Dalai Lama, the leader of the Tibetan Buddhists, to intervene on his behalf in 1677. The 5th Dalai Lama then called upon his Dzungar Buddhist followers in the Zunghar Khanate to act on this invitation. The Dzungar Khanate then conquered the Tarim Basin in 1680, setting up the Afaqi Khoja as their puppet ruler. Khoja Afaq asked the 5th Dalai Lama when he fled to Lhasa to help his Afaqi faction take control of the Tarim Basin (Kashgaria). The Dzungar leader Galdan was then asked by the Dalai Lama to restore Khoja Afaq as ruler of Kashgararia. Khoja Afaq collaborated with Galdan's Dzungars when the Dzungars conquered the Tarim Basin from 1678 to 1680 and set up the Afaqi Khojas as puppet client rulers. The Dalai Lama blessed Galdan's conquest of the Tarim Basin and Turfan Basin. Since 1680 the Dzungars had ruled as suzerain masters over the Tarim, for 16 more years using the Chagatai as their puppet rulers. The Dzungars used a hostage arrangement to rule over the Tarim Basin, keeping as hostages in Ili either the sons of the leaders like the Khojas and Khans or the leaders themselves. Although the Uighur's culture and religion was left alone, the Dzungars substantially exploited