During the plague epidemic in 1713, Emperor Karl VI vowed that as soon as the epidemic had ended he would build a church dedicated to St Charles Borromeo - a patron saint of the plague. Building took almost 25 years and the interior was richly decorated by the foremost artists of the day.