Complex sentence: With the departure of the popes the castle passed to the archbishop of Avignon, but it was too large and too expensive to maintain and was used as a source of stone for building work in the village.
Split into simpler sentences: With the departure of the popes the castle passed to the archbishop of Avignon, but it was too large and too expensive to maintain. It was used as a source of stone for building work in the village.