The temple was built by the Jesuits in the second half of the 18th century at the expense of the Oginsky family. Some time after the construction of the temple, its majestic appearance was extremely successfully complemented by a wonderful interior painting made in the grisaille technique by the notorious Kazimir Antoshevsky, the master of the "optical piece", i.e. a master who specialized in creating "optical" ("three-dimensional") wall paintings imitating sculpture. The only way to contemplate this splendor is to drive up to the time of the service in the church.