Complex sentence: In the end the battle was not bloodless but the Spanish were able to honorably surrender and the insurgents were kept out of the city.
Split into simpler sentences: In the end the battle was not bloodless. On the other hamd the Spanish were able to honorably surrender and the insurgents were kept out of the city.