Alfonso VII (1 March 1105 21 August 1157), called the Emperor (el Emperador), became the King of Galicia in 1111 and King of Len and Castile in 1126. Alfonso, born Alfonso Raimndez, first used the title Emperor of All Spain, alongside his mother Urraca, once she vested him with the direct rule of Toledo in 1116. Alfonso later held another investiture in 1135 in a grand ceremony reasserting his claims to the imperial title. He was the son of Urraca of Len and Raymond of Burgundy, the first of the House of Ivrea to rule in the Iberian peninsula.
Alfonso was a dignified and somewhat enigmatic figure. His rule was characterised by the renewed supremacy of the western kingdoms of Christian Iberia over the eastern (Navarre and Aragn) after the reign of Alfonso the Battler. Though he sought to make the imperial title meaningful in practice to both Christian and Muslim populations, his hegemonic intentions never saw fruition. During his tenure, Portugal became de facto independent, in 1128, and was recognized as de jure independent, in 1143. He was a patron of poets, including, probably, the troubadour Marcabru.
Pedro Fróilaz de Traba (fl. 1086–1126) was the most powerful secular magnate in the Kingdom of Galicia during the first quarter of the twelfth century. According to the Historia compostelana, he was "spirited ... warlike ... of great power ... a man who feared God and hated iniquity," for Diego Gelmírez himself had "fed him, like a spiritual son, with the nutriment of holy teaching." Brought up at the court of the Emperor Alfonso VI, Pedro raised the future Emperor Alfonso VII in his household. Around the latter he and Diego formed a "Galician party" that dominated that region during the turbulent reign of Urraca (1109–26). In September 1111 they even had the child Alfonso crowned king at Santiago de Compostela, but it was Pedro who was imperator in orbe Galletiae ("emperor in the ambit of Galicia").Widely travelled and well-connected, especially through the prestigious marriages of his many daughters—he had at least sixteen legitimate children by his two wives—Pedro was, besides a political and military figure, a religious one. Sometime before 1109 he founded the first religious house for women in Galicia. As a result of his generosity to the Cathedral of Saint James in Compostela, Pedro is the best known Spanish nobleman of his era. One modern historian has written that he "needs a modern biography, and the materials are adequate for one." Most existing coverage is outdated or too heavily reliant on the Historia compostelana.