Late in his reign Esen Buqa was contested by his brother Yunus Khan (1462–1487), who had been raised to the khanship by the Timurids in an attempt to counter Esen Buqa. After the death of Esen Buqa and his son Dost Muhammad in 1469, Yunus Khan reunited the khanate, defeated the Uzbeks and maintained good relations with the Kazakhs and Timurids, but the western Tarim Basin was lost to a revolt by the Dughlats. In 1484 he captured Tashkent from the Timurids.