 The region was part of Poland during the reign of the first Polish rulers Mieszko I and Bolesław I the Brave.The first recorded mention of the town comes from 1170 when the Pomeranian duke Casimir I granted a few villages and oversight of a church in the town to settlers from Lund in Sweden.It was part of the Duchy of Pomerania, which separated itself from Poland as a result of the fragmentation of Poland.