The Short Answer
It depends on what you mean by “wall.” Walls of houses and shelters are far older than walls around towns. The best-known early town wall is at Jericho, in the West Bank, where a stone wall and tower have been dated to roughly ten thousand years ago, though dates and interpretations are still discussed.
Walls Before Towns
People were building structures with walls long before they lived in towns. Hunter-gatherers sometimes made shelters with stones or other materials, and early farming villages in the Near East had houses with walls of mudbrick or stone. How and where early people sheltered is covered in where did early humans take shelter and why, and the first fixed dwellings are discussed in when did humans first make homes. Evidence for very early structures is often thin, since light materials rarely survive.
Jericho
Excavations at Tell es-Sultan, the site of ancient Jericho, uncovered a large stone wall and a round stone tower from the Pre-Pottery Neolithic period. The tower has an internal staircase and is still impressive. The wall and tower are often described as the earliest known monumental defenses.
Researchers disagree on their purpose. Some see defense against attackers, while others argue that the wall guarded against flooding and mud flow, or that it served as a symbol of community identity. The strongest conclusion that the evidence supports is that it was a major communal construction, which suggests organized labor.
Later Early Walls
As settlements grew larger across the Near East, walls became more common. In Mesopotamia, cities such as Uruk had long fortified circuits in the third millennium BCE, though exact dates are debated. In the Aegean and Anatolia, Bronze Age citadels gained heavy stone walls. Walls appeared independently in other regions too, so there was no single place where the idea began. The wider sequence appears in the history of building walls.
Why the Dates Are Uncertain
Walls are hard to date. Stones rarely carry a date themselves, so archaeologists look at what the wall sits on, what covers it and what is found in it. Charcoal or other organic material from sealed layers can be radiocarbon-dated, and results are given with margins of error. Techniques of this kind are described in archaeology and geochronology. New excavations or revised dating can change the picture.
Is Jericho Really the First?
Jericho is the most famous early example, not necessarily the first. Archaeologists look for older evidence, and discoveries elsewhere could shift the story. For now, it is safest to say that walls around settlements appear in the Near East by about ten thousand years ago, with house walls much earlier.