In 1510 Shah Ismail sent a large force of the Qizilbash to Transoxiania to fight the Uzbeks. The Qizilbash defeated the Uzbeks and secured Samarkand at the Battle of Marv. However, in 1512, an entire Qizilbash army was annihilated by the Uzbeks after Turcoman Qizilbash had mutinied against their Persian "wakil" and commander Najm-e Thani at the Battle of Ghazdewan. This defeat put an end to Safavid expansion and influence in Transoxania and left the northeastern frontiers of the kingdom vulnerable to nomad invasions, until some decades later.