In 1399, Švitrigaila survived the disastrous Battle of the Vorskla River against the Golden Horde. Spytek of Melsztyn was killed in the battle and Švitrigaila received his lands in Podolia.