 He spent most of his life in Castile, where he met and married María Pérez, daughter of Pedro Ansúrez, lord of Valladolid, in 1095.During his long absences in Castile, he left the government of Urgell to Guerau II of Cabrera.He died in 1102 at the battle of Mollerussa.