After regaining control over the Khanate, Ulugh Muhammad marched on Crimea, where Dawlat Berdi had re-established himself following Baraq's defeat and death. After a series of indecisive skirmishes his invasion was cut short due to the death of Vytautas, which forced Ulugh Muhammad to concentrate his forces on Lithuania, where he supported Sigismund Kęstutaitis against Švitrigaila in the fight for the Lithuanian throne. Švitrigaila, in turn, supported Dawlat Berdi and later Sayid Ahmad I, as did Vasili II of Moscow.