 The rebels were forced to abandon the capital of Galicia to Urraca, who hastily arranged a new alliance with Diego.On 18 May 1116 Urraca granted Diego a charter that was subscribed by Pedro, indicating that at least initially he too was drawn into the alliance with the queen.But when Urraca campaigned against Gómez Núñez, whose lands guarded the roads into Portugal from Galicia, she was surprised and besieged in Sobroso by Pedro in alliance with the Countess Theresa.