Complex sentence: The Spanish commander realizing surprise was lost and the castle being well defended called off the attack; he was not prepared for a siege and retreated the next day.
Split into simpler sentences: The Spanish commander realizing surprise was lost and the castle being well defended called off the attack. He was not prepared for a siege and retreated the next day.