The Baroque church was built between 1747 and 1753 according to plans by Kilian Ignaz Dientzenhofer, replacing a previous Gothic building. It was a three-bay hall church with the rounded corners characteristic of this architect, a square choir to the east, and a tower to the west.