Complex sentence: In the early days of the battle, the Spanish army tried an assault of the city walls, but this attempt to quickly conquer the city failed due to the insufficient preparation by the Spanish army, which had not expected much resistance.
Split into simpler sentences: In the early days of the battle, the Spanish army tried an assault of the city walls, but this failed. This was due to insufficient preparation by the Spanish army, which had not expected much resistance.