The church greatly suffered from the 1655 military campaign and was rebuilt in 1671, gaining some Renaissance features. Only one of the towers was rebuilt after the fire of the roof in 1732. As a part of renovation, the internal decorations were funded by the King Stanisław August Poniatowski in 1771. The main altar, a lectern and a choir were installed by Tomasz Podhajski in 1775.