In 1386, Prince was killed in the Battle of the Vikhra River against the Lithuanians when he supported Andrei of Polotsk and his rebellion against his younger half-brother Jogaila. However, Skirgaila, who commanded the Lithuanians in battle, was married to Sviatoslav's niece and allowed Yury of Smolensk to succeed his father. In 1395, Grand Duke Vytautas of Lithuania took Smolensk and installed his governor there. Four years later, Vytautas was routed by the Tatars in the Battle of the Vorskla River. In 1401, Yury and Oleg Korotopol of Ryazan made use of his plight to retake Smolensk and Bryansk. Vytautas attempted to retake Smolensk in 1401 and 1403. In 1404, boyars of Smolensk opened the city gates to Vytautas and surrendered the city in 1404.