Rampon was given the county of Barcelona, by Louis the Pious, King of Aquitaine, following Bera's accusation of treason, trial by combat, and his subsequent defeat.[1][2] During his time as count of Barcelona, Rampon founded monasteries, all of Frankish origin, thus spreading Carolingian hegemony throughout the Spanish March.[3]
Rampon was ruler of Barcelona, Girona, and Besalú with the title of Count, but possibly also Margrave; the latter title was reserved only for the rulers of border counties.
In 821, the Court at Aachen ordered Rampon to attack Muslim territory, an order which he carried out in 822,[4] ransacking land up to the river Segre. The same year, Louis the Pious at the request of Rampon, granted privileges to the monastery Saint-Stephen of Banyoles.[5]