After the Uzbeks were driven out of Samarkand in early 1501 CE, they regrouped in Bukhara. Muhammad Shaybani began to prepare for another attempt to take Samarkand in April - May 1501 CE. Babur, the Timurid leader, decided to meet this threat before it arrived at the city. The two armies met at Sar-e-Pul, where a decisive battle was fought which decided the fate of the Timurids and of the region, resulting in gradual conquest of Transoxiana, Khwarezm and Khorasan by the Uzbeks.