In 1241 the abbey was ransacked in the course of the Mongol invasion of Poland. It was rebuilt and the abbey church was consecrated in 1266 by Bishop Jan Prandota. It was later consumed by fire in 1447. It was ravaged again in the 17th century by the invading Swedish army. The abbey was destroyed and its entire resident population was killed by the Swedes, except for two monks whose lives were spared. The structure was renovated numerous times. The Baroque façade of the monastery church was added in 1779–80, based on a design by Franz Moser.