The current church was begun in the 10th century. The basilica was re-consecrated by Aribert, archbishop of Milan, who at the time was likely the hereditary tenant of the edifice: this is testified by the presence of graffiti under the apse's frescoes, which mention the death of his father, brother and nephew.
