the bridge was the only way to access it from the mainland , with most of what he could see of the city surrounded by a wall of variable heights , built on the edges of the cliff face that served as the city 's sea wall .