The church was built in the Baroque style between 1613 and 1615 on the site of an older Gothic style church, erected in the early 15th century by the Augustinian Order. In 1598, the old church was acquired by the Jesuits and thus became the first Jesuit church in the Slovene Lands and one of the first in the Inner Austria. The interior was designed by the Italian architect Francesco Robba, who designed the main altar, and the Slovene stonemason Luka Mislej, who designed the entrance portal and the stone side altars. After the Ljubljana earthquake of 1895, the church was renovated by the Linz-based architect Raimund Jeblinger and the interiors were redesigned by Janez Šubic. Nevertheless, much of the original Baroque style has remained intact.