 In 1265 it was given town rights.By the 14th century, the town had become a centre of local administration and trade and a Hanseatic League associate.Between 1368 and 1478, it was the residence of the Dukes of Słupsk, until 1474 vassals of the Kingdom of Poland.