The Lithuanian army, led by Skirgaila, attacked Polotsk in 1387. The Livonian Order did not defend it, and the city soon surrendered. Andrei was captured; his son Simeon died in the fighting and another son, Ivan, escaped to Pskov, where he was mentioned as a prince in 1389. Andrei was imprisoned in Poland for seven years. He was released in 1394 by request of Vytautas. After the release Andrei moved to Pskov, where he attempted to negotiate a truce between Pskov and Novgorod. After this event he was mentioned only once – as one of the prominent figures, who perished in the Battle of the Vorskla River in 1399.