sentences:  The monastery became the family mausoleum for the Counts of Barcelona and Counts of Besalú, and well as a great center of learning, with a large library.The library and much of the monastery's vast archives were destroyed by fire in 1835, after it had been secularized.In 1847 part of the cloister was demolished, followed in 1856 by the abbey palace.