The chapel is built on what was actually a vent of an ancient volcano. Prior to its construction in 962, the site was used for pagan worship of the sun. The erection of the chapel was inspired by a pilgrimage to Santiago de Compostela.