 Before this project, Pac, having made only a couple relatively minor donations to Bernardines in Vilnius and Jesuits in Druskininkai, was not known as a patron of the church or the arts.Pac, who never married, envisioned that the church would become a mausoleum for the Pac family.The construction works started on 29 June 1668 (the day of the Feast of Saints Peter and Paul) under the supervision of Jan Zaor from Kraków and finished in 1676 by Giovanni Battista Frediani.