 In 1648, according to the peace treaty of Osnabrück, Stolp became part of Brandenburg-Prussia.In 1815 it was incorporated into the newly formed Prussian Province of Pomerania.After World War II the city was assigned to Poland as part of the recovered territories.