 The more remote vestiges, now preserved, suggest a dating to the late 9th, early 10th century.It has been debated that, following his reconquest of the city of Porto, Vímara Peres, in 868, constructed or rebuilt a temple (whose remaining two triumphal arch capitals were later reused in the Romanesque period).These capitals are one of the most important indicators of constructive dynamics that accompanied the first conquest of the territories along the Douro and stylistically relate to the late-Asturian construction (such as in the churches of São Salvador and Valdediós Priesca, both from the beginning of the tenth century.