Original: The whole complex was surrounded by high walls, some of which date back to the Byzantine acropolis.
Simplified: The palace is surrounded by 5km of walls.