His county comprised Besalú, the Fenouillèdes, Capcir, the Baridà, the valley of Orillas, that of Lillet, the Berguedà, the Ripollés, the Vallespir, the upper plain of Roussillon from Illa de Tet to Sant Esteve del Monasterio, Conflent, the Donasà, and Peyrepertuse. Oliba's counties and the counties of Borrell II, Count of Barcelona, formed the two main divisions of Catalonia during the latter half of the 10th century. Oliba brought Cerdanya to its zenith. He expanded his lordship to the north into the County of Carcassonne and to the west into the Counties of Roussillon and Empúries. He extended his authority over the churches of Sant Joan de les Abadesses and Lagrasse and usurped the "de facto" supremacy in Catalonia from Borrell II of Barcelona. In 988, Oliba Cabreta retired to the monastery of Montecassino and divided his lands between his three sons, the second-born, Wilfred, receiving Cerdanya and Conflent. In 1002, Berga was annexed to Cerdanya.