Why do so many streets end in walls or dead ends?

The short answer

Dead ends are deliberate: they mark the transition from public to semi-private residential territory. The medina's layout filters strangers away from homes. What looks like poor planning is actually a sophisticated access control system.

You're following the alley. It turns left, narrows, turns again — and stops. A wall. You've walked into a dead end, and you'll have to retrace every step.

The dead end is not a mistake. It's a boundary.

The cul-de-sac belongs to the families who live on it. It is semi-private space — an extension of the home, not the city. Children play there because through-traffic cannot reach them. The families whose doors open onto it share responsibility for sweeping it, lighting it, knowing who belongs and who doesn't.

Strangers who enter are noticed immediately. Not confronted — just watched. If you've wandered in by accident, someone will eventually appear at a doorway and redirect you. This is not hostility. It's a neighborhood functioning as designed.

For you as a visitor, the dead end is a navigation problem. For residents, it's the reason the street is quiet, the children are safe, and the neighbors know each other's names. The inconvenience is yours. The benefit is theirs. The city was built for the people who live in it, not the people passing through.