Complex sentence: For most of the last two centuries, the majority of the buildings lay in ruins but the castle was almost fully restored in the late 1990s.
Split into simpler sentences: For most of the last two centuries, the majority of the buildings lay in ruins. However, the castle was almost fully restored in the late 1990s.