In 1713, one year after the last great plague epidemic,

VI, Holy Roman Emperor, pledged to build a church for his namesake patron saint, who was revered as a healer for plague sufferers. An architectural competition was announced, in which Johann Bernhard Fischer von Erlach prevailed over, among others, Ferdinando Galli-Bibiena and Johann Lukas von Hildebrandt. Construction began in 1716 under the supervision of Anton Erhard Martinelli. After J. B. Fischer's death in 1723, his son, Joseph Emanuel Fischer von Erlach, completed the construction in 1737 using partially altered plans. The church originally possessed a direct line of sight to the

and was also, until 1918, the imperial patron parish church.
As a creator of historic architecture, J. B. Fischer united the most diverse of elements. The façade in the center, which leads to the porch, corresponds to a Greek temple portico. The neighboring two columns, crafted by Lorenzo Mattielli, found a model in Trajan's Column in Rome. Next to those, two tower pavilions extend out and show the influence of the Roman baroque (Bernini and Borromini). Above the entrance, a dome rises up above a high drum, which the younger J. E. Fischer shortened and partly altered.