 A Sufi master Khoja Āfāq defeated Saidiye kingdom and took the throne at Kashgar with the help of the Oirat (Dzungar) Mongols.After Āfāq's death, the Dzungars held his descendants hostage.The Khoja dynasty rule in the Altishahr (Tarim Basin) region lasted until 1759.