Kolberg, with most of Farther Pomerania, was granted to Brandenburg-Prussia in 1648 by the Treaty of Westphalia and, after the signing of the Treaty of Stettin (1653), was part of the Province of Pomerania. It became part of the Kingdom of Prussia in 1701. In the 18th century, trade with Poland declined, while the production of textiles developed. In 1761, during the Seven Years' War, the town was captured after three subsequent sieges by the Russian commander Peter Rumyantsev. At the end of the war, however, Kolberg was returned to Prussia.