 After Tarragona was re-conquered from the Moors, on 8 March 1118 Olegarius was consecrated archbishop of Tarragona (remaining bishop of Barcelona) by Gelasius, who as a monk had lived at Saint-Ruf under Olegarius.He received the bull of confirmation and the pallium on 21 March.He was granted full jurisdiction over Tarragona and its countryside by Ramon Berenguer III—through a process, agreed on 23 January 1118, whereby the secular lordship was granted to the Church pending reconquest—and also received ecclesiastical administrative rights over the projected diocese of Tortosa (which had not yet been conquered) from Pope Gelasius.