In 1665, the Russian army attacked the city several times, and in 1701 the city was occupied by the Swedish Army.
1665. godine, carska Rusija je napadala grad nekoliko puta, a 1701. su ga zauzele švedske postrojbe.