 Originally it was a votive church whose construction was started by Rudolf II, Holy Roman Emperor, in 1602 as an expression of thanks for the end of the plague in 1599.After numerous changes of fortune the church was completed, including its interior, by 1630.When Kašpar Questenberg died in 1640 his successor was Kryšpin Fuk, who continued in his work.