Odalric, Count of Barcelona explained

Odalric, also spelled Odalrih, Odelric, or Udalrich, was the Count of Barcelona, Girona, Roussillon, and Empúries and Margrave of Septimania from 852 to 858.

Odalric was a Hunfriding, probably the second son of Hunfrid, Margrave of Istria. He had to deal with increasing conflicts with the Muslim kingdoms to the south while the Frankish Empire was suffering succession issues.

Sources