 Diego was able ultimately to force the return of his church's lands, and probably Pedro received an equally favourable settlement from the queen.He was with the queen on 22 March 1122, when she confirmed Alfonso's donation of the monastery of San Martín de Pinario to the church of Compostela, and was with her again on 8 March 1123 at Lugo, with most of the Galician high nobility.Sometime after this, and perhaps before she came to an understanding with Diego on 27 March, Queen Urraca had Pedro arrested and imprisoned along with his sons.