Complex sentence: Cahors has had a rich history since Celtic times, though it has declined economically since the Middle Ages and lost its university in the eighteenth century.
Split into simpler sentences: Cahors has had a rich history since Celtic times. It has declined economically since the Middle Ages, and lost its university in the eighteenth century.