The first traces of humans inhabiting the area date from the Bronze Age and can be seen in form of dolmens such as those found in El Sot de Dones Mortes or in Pardinella. This area was later used by peoples from the Atlantic culture to store bronze weapons and as a passway from the Catalan Central Depression to the Pyrenees. The area also has tombs from the late Roman occupation age and some belonging to the Visigoths.
It has a famous Benedictine monastery built in the Romanesque style, Santa Maria de Ripoll, founded by the count Wilfred the Hairy in 879. The count used it as a centre to repopulate the region after conquering it. In the High Middle Ages, its castle, the Castle of Saguardia, located in the county of Les Llosses was ruled by the Saguàrdia family, of which Ponç de la Guàrdia was a famous troubadour.