Muhammad Shaybani
Mahmud Khan had to defend Tashkent from the Timurids Sultan Ahmad of Samarkand and Omar Shaikh of Ferghana, who resented the loss of the city to Yunus Khan a few years before. 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 land in Russian Turkestan in 1488 (which was named "Uzbekistan" and eventually evolved into the present country with that name). This move, however, upset the Khazaks, who were enemies of the Uzbeks. Although the Moghuls were traditionally friends with the Khazaks, they went to war with each other, and Mahmud Khan was defeated.