Muhammad Shaybani
Sultan Mahmud Khan had to defend Tashkent from the Timurids of Samarkand and of Ferghana, who resented the loss of the city to his father Yunus Khan. Mahmud Khan successfully thwarted their efforts to take Taskhent, and during his fight with Sultan Ahmad gained the defection of one of the men fighting under him, the Uzbek Muhammad Shaybani. As a reward to Muhammad Shaybani, Mahmud Khan gave him Turkistan in 1488. This was a political mistake as it resulted in him losing a long time ally in the Kazakhs who were traditional enemies of the Uzbeks. As a result, the Moghuls and the Kazakhs went to war, the result of which was the defeat of Mahmud Khan. This weakened his military prestige in the region.