The Enclosing Wall was erected in the eighteenth century both as a defensive measure and to prevent unauthorized persons from being able to see into the naval base and dockyard.