They had many lines of defence to protect inhabitants living within the castle and city walls