 It can be assumed that this church was closely linked with the Monastery of Santa Maria located in the valley below.In years past, the practice of building a fortified structure at a higher elevation was rather common as it provided a place of refuge in the event of military threats or attacks.Many such structures were erected following the first invasions of the Saracens in the 9th century.