The two armies met in Tarnab, where Ala al-Dawla was defeated, forcing him to withdraw to Abul-Qasim Babur in Astarabad.[11] Mashhad was occupied by Ulugh Beg's forces, while Abdal-Latif conquered Herat.[2] With this failure, Ala al-Dawla lost much support among his followers and never recovered his former pre-eminence. Even his grandmother Gawhar Shad appears to have doubted him, taking refuge instead with his brother Sultan Muhammad in Isfahan, bringing with her many of her relatives, nobles and a large number of troops.[11]