The church was firstly in the early Middle Ages, but rebuilt in the early 18th century, after the earthquake of 1693 that had destroyed most of the city. The church was elevated to a collegiate church by Pope Eugenius IV.