During the Swedish invasion (commonly referred to as "The Deluge") the church fell into ruin and subsequently burnt down, but the magistrate's resolution from 1664 ensured that the hospital had an income. In 1665, in honour of the defence of Warsaw, the magistrate promised the priests of the Pauline order a new temple of worship.