Although the shrine dates back to the 16th century, the image of the Virgin inside is mediaeval, from the 14th century.  The sister of Saint Ignatius of Loyola, Magdalena of Oñaz-Loyola, contributed to its construction with her donations.