 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.In 1769, Frederick II of Prussia established a military school in the city, according to Stanisław Salmonowicz its purpose was the Germanization of local Polish nobility.