After the Thirty Years' War, Stolp lost much of its former importance—despite the fact that Szczecin was then a part of Sweden, the province's capital was situated not in the second-largest city of the region, but in the one closest to the former ducal residence—Stargard. However, the local economy stabilized. The constant dynamic development of the Kingdom of Prussia and good economic conditions saw the city develop. After the major state border changes (modern Vorpommern and Stettin joined the Prussian state after a conflict with Sweden) Stolp was only an administrative centre of the "Kreis" (district) within the "Regierungsbezirk" of Köslin (Koszalin). However, its geographical location led to rapid development, and in the 19th century, it was the second city of the province in terms of both population and industrialization.