the construction of defensive systems was a constant matter of concern for the local government and the kingdom