 The authors of the "Historia compostelana" certainly did not recognise it, but perhaps for partisan reasons.Beginning in 1109, however, Pedro's power and influence in Galicia was such that he was calling himself "Count of Galicia" ("Gallecie comes"), although he did not control the entire province.This had occurred by 22 July, shortly after the death of Alfonso VI and the succession of Urraca, who was his heiress after the death of Sancho Alfónsez at the Battle of Uclés (1108).