Complex sentence: It is the capital of the county'Comunidad de Calatayud' (Calatayud Community), which for 3 years, during the 19th, century it was an independent province.
Split into simpler sentences: It is the capital of the county'Comunidad de Calatayud' (Calatayud Community). For 3 years during the 19th century it was an independent province.