 In the 9th century, Bishop Athanasius of Naples built a new religious building and dedicated to the abbot Saint Agnello and placed his relics in the church.During the Middle Ages, the cult of Sant'Agnello became increasingly important and the end of the 13th century till 1517, the church was under the direction of a rector, which from there on was a priest of the order of Canons Regular of the Lateran Congregation of the Most Holy Savior .From 1510 to 1600, the church rebuilt and enlarged by the archbishop Giovanni Maria Poderico.