Original: The castle was built in the thirteenth century and expanded over the years.
Simplified: The castle was built in the thirteenth century.