Complex sentence: The besiegers, to save the remaining prisoners, withdrew, having had to suffer the humiliation of watching the heads of the Jewish captives as they were thrown over the walls.
Split into simpler sentences: The besiegers, to save the remaining prisoners, withdrew. Having had to suffer the humiliation of watching the heads of the Jewish captives as they were thrown over the walls.