Complex sentence: In 1621 the castle was converted into an army barracks then into a state prison under Napoleon Bonaparte.
Split into simpler sentences: In 1621 the castle was converted into an army barracks. Nearly two centuries late it was converted into a state prison under Napoleon Bonaparte.