the wall had been built over many years by prisoners under the command of the citadel , supposedly for the citizens protection but its size and breadth made it seem like the entire city was being imprisoned .