All of those cities had high walls around them. The city gates were made secure with heavy metal bars. There were also large numbers of villages that didn't have walls.