Damaged during Swedish wars, part of the church has been rebuilt and renovated in the second half of the 17th century: the western peak (1648–1686), the church tower (1677) and a chapel in the courtyard in front of the church, modeled after the sanctuary in Loreto (1682–1685).