Considered the Romanesque cathedral of El Berguedà, it is one of the most outstanding examples of Lombard Romanesque architecture in Catalonia. The building was constructed around 1070 as the seat of a small community of Augustinian Canons. Part of its altarpiece depicting the legend of Saint James is housed in the museum. The museum also conserves the panels of Sagàs, which came from the church of Sant Andreu de Sagàs.
Given its unusual structure, the building is a very unique example of Catalan Romanesque architecture of the 11th century.