Ramon Borrell, Count of Barcelona
Ramon Borrell (972–1017), son of Borrell II, was count of Barcelona from 992. Surviving Almanzor's last raids, he counter-raided Lleida in 1003.
In 1010, during the civil war in the Caliphate of Córdoba, he joined Muhammad II to defeat Caliph Sulayman II and sack Córdoba. Later raids reached the Ebro and Segre in 1015–1016, and their wealth helped him maintain his barons' loyalty. He repopulated the Camp de Tarragona and was the first Catalan count to mint coinage. He died in 1017, leaving his son Berenguer Ramon to the regency of his wife Ermesinde of Carcassonne.