The church was also the location of the "Mary-wonder." In 1686 during the siege of Buda city by the Holy League a wall of the church collapsed due to cannon fire. It turned out that an old votive Madonna statue was hidden behind the wall. As the sculpture of the Virgin Mary appeared before the praying Muslims, the morale of the Muslim garrison collapsed and the city fell on the same day.