Tughlugh Timur
In 1363, Tughlugh Timur, who had recently taken control of Transoxiana and had executed many of its local leaders, appointed Ilyas Khoja as its ruler. The ruthlessness with which the Moghuls ruled the region caused many to oppose them, including of the Qara'unas and Amir Timur of the Barlas. Together they faced an army of Moghuls and local tribes loyal to Ilyas Khoja, and defeated them at the . Shortly afterwards, Tughlugh Timur died and Ilyas Khoja left for Moghulistan to take power.