The parish of St Martin was created in the first half of the 13th century, even before the city was established. The first mention of the church, which initially must have been made of wood, comes from 1252. The adjacent hamlet, known by the name of Saint Martin, was not incorporated into the city until the end of the 18th century. The present Gothic structure comes from the early 16th century. In 1657 it was burnt down by the Brandenburg army. Rebuilt at the turn of the 18th century, the church gained a Baroque interior. The high altar features a late Gothic Silesian triptych from the 15th century.