The Turkic Muslims then proceeded to conquer the Turkic Buddhists in Islamic holy wars and converted them to Islam. The mixture between the invading Mongoloid 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. Professor James A. Millward described the original Uyghurs as physically Mongoloid, giving as an example the images in Bezeklik at temple 9 of the Uyghur patrons, until they began to mix with the Tarim Basin's original eastern Iranian inhabitants. The modern Uyghurs are now a mixed hybrid of East Asian and Europoid populations. 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).