In actuality, local control rested with local Mongol Dughlats or Sufi Naqshbandi in their respective oases. Although the rulers enjoyed great wealth from the China trade, it was beset by constant civil war and invasions by the Timurid Empire, which emerged from the western part of the erstwhile Chagatai Khanate. Independence-minded khans created their own domains in cities like Kashgar and Turfan. Eventually it was overcome by the Kyrgyz, Kazakhs, and Oirats. In the east, the Yarkent Khanate continued until it was conquered by the Dzungar Khanate in the early 18th century.