Mieszko I of Poland
In the Middle Ages it was a Slavic gród. In 967 it became part of Poland under first historic ruler Mieszko I of Poland. The first church was built around 1124. The settlement was mentioned in 1190 and 1321. In 1338 it was granted Magdeburg town rights and was known as "Freienwalde". In the 15th century the town's main landmark was built – the Gothic Our Lady of Sorrows church.