The Thirty Years' War devastated the town, and as a consequence of the post-war Peace of Westphalia (1648) and Treaty of Stettin (1653), the town remained with Sweden who had occupied the area since the Treaty of Stettin (1630). The border with Brandenburg-Prussian Pomerania now ran close to the town, and cut Gollnow off from its economic hinterland, which hindered recovery from the war. Between 1677 and 1683, Gollnow was occupied by Brandenburg-Prussia. In the years that followed, the number of craftsmen in the town grew steadily. In 1720, Sweden lost its possessions south of the Peene and east of the Peenestrom rivers, including Goleniów ("Gollnow"), to Prussia in the Treaty of Stockholm. In the 19th century, craft and trade were joined by industry - Gollnow hosted a coppersmith, a needle fabrication, several facilities for the manufacturing of furniture, three breweries, a distillery, and five water mills. In the late 19th and early 20th century, the town became an important railroad junction, when it was connected to Dębno (then officially "Neudamm") and Nowogard ("Naugard") in 1882, to Kamień Pomorski ("Cammin") and Wolin ("Wollin") in 1892, and to Massow in 1903. Gollnow was part of the Prussian province of Pomerania from 1815 to 1945. From 1871 to 1945 it was also part of Germany. In 1919, the Germans operated a camp in the town, in which they imprisoned Poles arrested in Szubin during the Greater Poland uprising. During World War II, Germany operated a Nazi prison in the town, with multiple forced labour subcamps located in the region. Polish forced labourers were imprisoned in the town. The totality of the town's population was expelled in accordance with the Potsdam Agreement.