The site of the present church used to be occupied by a wooden church, following the form a Latin cross, erected in 1638, when Vilnius was part of the Polish-Lithuanian Commonwealth and was known as Wilno.
After a fire gutted the wooden church in the 18th century, a stone church was erected in 1749-1753 in the Baroque style, with details of the interior in Roccoco style.