▁ 9 7 8 ▁by ▁Un is co ▁God ins , ▁wife ▁of ▁A bo azar ▁Lov es endes , ▁first ▁lord ▁of ▁Ma ia ▁and ▁ancest or ▁of ▁this ▁family . ▁ ▁On ▁ 2 3 ▁November ▁ 1 0 9 7 , ▁count ▁Henri que ▁and ▁his ▁wife ▁Ter esa ▁don ated ▁land , ▁defining ▁the ▁boundaries , ▁and ▁other ▁properties ▁to ▁So e iro ▁M endes ▁da ▁Ma ia , ▁a ▁desc endant ▁of ▁Un is co ▁and ▁Ab un azar . ▁So e iro , ▁in ▁turn , ▁on ▁ 2 3 ▁March ▁ 1 0 9 8 ▁don ated ▁these ▁properties ▁to ▁the ▁Abb ot ▁of ▁the ▁monaster y , ▁G au dem iro , ▁making ▁the ▁monaster y ▁one ▁of ▁the ▁rich est ▁and ▁relevant ▁in ▁the ▁country . ▁It ▁was ▁awarded ▁Bull s ▁of ▁protection ▁by ▁the ▁Pop es ▁In noc ent ▁III ▁and ▁Honor ius ▁III . ▁▁ ▁The ▁original ▁mon astic ▁church ▁was ▁built ▁in ▁ 9 7 8 . ▁It ▁was ▁replaced ▁by ▁another ▁one ▁in ▁ 1 0 9 0 , ▁which , ▁in ▁turn , ▁was ▁replaced ▁by ▁another ▁one ▁built ▁in ▁the ▁early ▁ 1 4 th ▁century ▁with ▁the ▁funds ▁don ated ▁for ▁its ▁construction ▁by ▁ ▁Mart im ▁Gil ▁de ▁R iba ▁de ▁V iz ela , ▁Count ▁of ▁Barcel os . ▁From ▁this ▁church ▁there ▁are ▁some ▁arch ae ological ▁remains . ▁On ▁ 1 5 ▁October ▁ 1 3 8 5 , ▁and ▁ 6 ,