This country was later known as "Kashgar and Uyghurstan", according to Balkh historian Makhmud ibn Vali ("Bahr al-Asrar", "Sea of Mysteries", 1641-1644). Kashgar historian Muhammad Imin Sadr Kashgari called the country Uyghurstan in his book "Traces of Invasion" ("Asar al-futuh") in 1780 (as opposed to Jungaria, which he called Moghulistan, and the Ili River valley, which he called Baghistan, "i.e." Land of Gardens). He wrote that this great country embraced a union of six cities south of Tangri Tagh — Kashgar, Yangihisar, Yarkand, Khotan, Aksu ("Ardabil"), and Uch Turpan ("Safidkuh") — the so-called Altishahr, as well as Kucha, "Chalish" (Karashahr), Turpan and Kumul. According to him, the country collapsed not due to attacks by external enemies, but due to the personal ambitions of its religious leaders, the Khojas. The Khojas were divided into two hostile groups that hated and killed each other - the "Ak Taghliks" (White Mountaineers) and the "Kara Taghliks" (Black Mountaineers), who deposed one of the last Moghul Khans, Ismail Khan, in 1678, with the help of invited Kalmyks (Dzungars), and put the whole country under the foots of future invaders, including Dzungars and Qing dynasty of China, for gaining personal powers.