Castles were used to protect the local populace near to the castle.