The church was built in the grand market, in place of the former Jewish synagogue, which was destroyed during the pogrom of 1349 (which followed an outbreak of Black Death).
Charles IV's son Wenceslas was baptized in the church in 1361, on which occasion the Imperial Regalia, including the imperial reliquaries, were displayed to the people.