 During the wars with Russia in 1655–61, the monastery was burned down and the church was destroyed.The construction of the new church was commissioned by the Great Lithuanian Hetman and Voivode of Vilnius Michał Kazimierz Pac.It is said that Pac was inspired to rebuild the church after a 1662 incident when he hid in its ruins and thus narrowly escaped death from mutinous soldiers who later killed Wincenty Korwin Gosiewski, Field Hetman of Lithuania, and Kazimierz Żeromski.