The church was probably built at the end of the 13th century, funded by the von Wedel family. However, there are hypotheses dating the church to an even earlier period - the beginning of the 13th century, and linking its construction to the Order of St. John. Initially, it was a Gothic church, but after reconstruction in the 16th century, it took on Renaissance features. In the 18th century, it received a new, baroque tower dome. The church was renovated several times. The recently completed renovation strengthened the tower's structure. The plasters were also removed.