In 1422 Baraq Khan defeated both Ulugh Muhammad and Dawlat and drove them out of the country. while Dawlat remained in the outskirts of Crimea, Ulugh Muhammad fled to the Grand Duchy of Lithuania and plead for assistance from Vytautas the Great. With this assistance, he was able to march on Baraq and capture Sarai.