 He was a close counsellor to Ramon Berenguer III and Ramon Berenguer IV.At some point after the Battle of Corbins—a great Catalan defeat—in 1124, Olegarius is said to have gone on a pilgrimage to the Holy Land.He cut his stay short at Antioch because of concern for Tarragona and had returned by 1127.