and a place called Ferraria (today Ferreira, a parish of Coristanco). These three castra are elsewhere called castellis by Alfonso VII in a donation to the Cathedral of Santiago in 1127, where they also appear clumped together. In the charter of donation Rodrigo is twice named "Count Rodrigo de Traba" (Comes Rudericus de Traua), a name used again in a similar royal donation in 1131. These are the only instances in contemporary documents of Rodrigo using "Traba" as part of his name. Sometime before 5 December 1135 Rodrigo was granted the tenencia (fief) of the Limia in Galicia, which he continued to govern down to at least 13 March 1156, possibly until his death. By 31 January 1155 he had also received the important Galician tenencia of Monterroso, where he can be seen ruling as late as 1 June 1157, and probably until his death. In one of Alfonso VII's last donations to the Cathedral of Santiago, in 1155, Rodrigo styled himself "Count Rodrigo Pérez of Galicia", the last apparent use of the title "Count of Galicia". One document dated 13 February 1147, but corrected to 1148, refers to his holding Salamanca, an important Leonese city, jointly with Ponce Giraldo de Cabrera, but this is the only citation of such a holding. Military affairs Rodrigo was politically closely aligned with the County of Portugal, which his half-brothers Vermudo and Fernando Pérez were de facto ruling through the latter's adulterous liaison with Countess Theresa. He regularly visited their court from 1128 onwards, even after the Battle of São Mamede liquidated his relatives' power. On 28 September 1132 as a reward for loyalty and service he received the vill of Burral from Afonso Henriques, Theresa's son and successor. At least between August 1132 and 26 February 1135 he held the lordship of Porto, and in 1137 he and Gómez Núñez aided the Portuguese when they invaded Galicia. At the time of the invasion the Chronica notes that Rodrigo "had fortifications in Limia and other commissions from the Emperor." From at least November 1140 until as late as 1 February 1141 he was the dapifer (majordomo) of the new royal household of Portugal after Afonso declared himself king in 1139. In September 1141 Afonso Henriques and Alfonso VII finally came to terms, and both Rodrigo and Gómez "paid a severe political price as a result." According to the Chronica, they "proved themselves disloyal