Being quite close to the river the church has suffered many times from spring floods. In 1812 it was burned by French troops. The Franciscan friary was closed by Russian administration after the November Uprising. In 1845, the Catholic church was closed and later was rebuilt and reopened as an Orthodox church. From 1903 it served as military barracks. In 1915 Germans organised a warehouse here. The building returned to the Catholic Church in 1919 and underwent major renovation works in 1931–1938, and again in 1978–1982.