This Romanesque church is preserved remnant of the Monastery of Santa Maria de Loio. I was the birthplace of the Knights of Santiago to the 1170, where it would be replaced in that role by Vilar de Donas. So here comes the Military Order of the Knights of Santiago in the early twelfth century.