Second Northern War
In 1656 during the Second Northern War Russians again seized the castle and destroyed the town.