 Since 1618 ruled in personal union with the Imperial Margraviate of Brandenburg as Brandenburg-Prussia, although the Prussian part remained under Polish suzerainty until 1657.Hohenstein/Olsztynek with Ducal Prussia was incorporated into the Kingdom of Prussia in 1701.In 1804 a fire destroyed 108 houses and the townhall.