People lived in castles for protection.