Complex sentence: Henry IV of Castile captured the town from the Moors in 1457, and a church was built on the site of the previous mosque.
Split into simpler sentences: Henry IV of Castile captured the town from the Moors in 1457. A church was built on the site of the previous mosque.