or even Sahagún as likely birth places based on the known itineraries of Henry and Teresa. His place of baptism is also under suspicion: according to tradition the place is indicated as being in the Church of São Miguel do Castelo, in Guimarães, however there are doubts because of the date of the consecration of the Church, made in 1239. There are those who argue that the baptism actually took place in the Cathedral of Braga where he was baptized by Primate Archbishop Saint Gerald of Braga, which is politically sound for Count Henry to have the highest ranking clergy baptize his heir. Henry and Teresa reigned jointly as count and countess of Portugal until his death on 22 May 1112 during the siege of Astorga, after which Teresa ruled Portugal alone. She would proclaim herself queen (a claim recognised by Pope Paschal II in 1116) but was captured and forced to reaffirm her vassalage to her half-sister, Urraca of León. It is not known who was the tutor of Afonso. Later traditions, probably started with João Soares Coelho (a bastard descendant of Egas Moniz through a female line) in the mid-13th century and ampliated by later chronicles such as the , asserted he had been Egas Moniz de Ribadouro, possibly with the help of oral memories that associated the tutor to the house of Ribadouro. Yet, contemporary documents, namely from the chancery of Afonso in his early years as count of Portucale, indicate according to Mattoso that the most likely tutor of Afonso Henriques was Egas Moniz's oldest brother, Ermígio Moniz, who, besides being the senior brother within the family of Ribadouro, became the "dapifer" and "majordomus" of Afonso I from 1128 until his death in 1135, which indicates his closer proximity to the prince. In an effort to pursue a larger share in the Leonese inheritance, his mother Teresa joined forces with Fernando Pérez de Trava, the most powerful count in Galicia. The Portuguese nobility disliked the alliance between Galicia and Portugal and rallied around Afonso. The Archbishop of Braga was also concerned with the dominance of Galicia, apprehensive of the ecclesiastical pretensions of his new rival the Galician Archbishop of Santiago de Compostela, Diego Gelmírez, who had claimed an alleged discovery of relics of Saint James in his town, as a way to gain power and riches over the other cathedrals in the Iberian Peninsula. In order