 The present Romanesque building was constructed as a collegiate church in the 1170s, but was damaged in the earthquake of 1731 and restored in a Baroque style.When the Diocese of Foggia was created in 1855, the collegiate church was declared its cathedral.The diocese was elevated to an archdiocese in 1979 and amalgamated with the Diocese of Bovino to form the Archdiocese of Foggia-Bovino in 1986.