During the Livonian war, in 1582 Swedish troops led by Pontus De La Gardie almost captured the fortress. After a row of artillery fire they managed to break into one of the towers, but were later repelled by Muscovites.