The construction of the chapel occurred in an undetermined point in the high Middle Ages. Defenders of the Visigothic chronology of events, point to an inscription dated from 588. Other arguments, enunciated by Lampérez y Romea, point to the triumphal arch and "basilica"-like plan that was adapted to favour its Visiothic origins. The idea of a 6th–7th century church gained favour directly and was repeated by other authors, such as Schlunk, Fernando de Almeida and Hauschild, among others. But in recent years, the hypothesis that the church was a 9th or early 10th century construction has been advanced. First, by Joaquim de Vasconcelos, who used the church of São Pedro de Lourosa (dated 912), but later by Real, Ferreira de Almeida, Barroca and Teixeira, in addition to others.