In 1701, during the Great Northern War, Liepāja was captured by Charles XII of Sweden, but by the end of the war, the city had returned to Polish possession.
В 1701 во время Северной войны Лиепая была занята войсками Карла XII Шведского, но окончание войны город увидел под властью Польши.