Complex sentence: Campo Maior resisted for 18 days before falling to the Spanish army, but Elvas successfully resisted a siege by the invaders.
Split into simpler sentences: Campo Maior resisted for 18 days before falling to the Spanish army. While Elvas successfully resisted a siege by the invaders.