Djemaa el-Fna and the original social network
On gathering, performance, and the architecture of encounter
I want to begin with an empirical claim: Djemaa el-Fna, the great square in the center of Marrakech's medina, is the oldest and most successful social network in continuous operation.
It has been running for approximately a thousand years. It has never had a product update. It has never raised a funding round. It has no recommendation algorithm, no engagement metric, no content policy. It does not know how many daily active users it has, and it does not care.
And yet every evening, without fail, it assembles one of the most extraordinary concentrations of human attention and social energy I have witnessed anywhere on earth.
I want to understand why.
The structure of the square
Djemaa el-Fna is not, architecturally, a remarkable space. It is large, roughly rectangular, open to the sky. The famous Koutoubia mosque rises at its edge, and the Atlas mountains — when the light is right and the haze is absent — frame the horizon to the south. But the space itself is modest. Flat. Unpretentious.
What happens inside it is not.
By day, it is relatively quiet. Orange juice vendors, a few snake charmers, clusters of henna artists. The square exists but does not insist.
At dusk, something shifts.
The food stalls materialize — dozens of them, numbered, each with its own caller who functions somewhere between auctioneer and comedian, pulling passersby into engagement with a combination of theater, flattery, and aggressive hospitality. Smoke rises from a hundred grills. The smell of lamb and cumin and charcoal braids through the cooling evening air.
And then the circles form.
A storyteller begins. In Arabic, in Darija, performing a narrative that may be centuries old — improvised and traditional simultaneously, the way jazz is both. A circle of listeners forms around him, three people deep, leaning in. Nearby, a Gnawa musician starts a hypnotic, repeating phrase on his guembri. Another circle. A man with trained monkeys draws a crowd that is half delighted and half uncertain. More circles. An acrobat. A fortune teller. A herbalist with a display of roots and powders and an explanatory patter that is also, unmistakably, a performance.
The square has become a distributed network of human attention nodes, each generating its own gravity, each competing and coexisting with the others.
The algorithm of the circle
Here is what I find technically fascinating about the circle as a social form.
When you join a circle at Djemaa el-Fna, you are not a passive consumer. You are infrastructure. Your presence on the outer edge increases the density of the crowd, which increases the social signal visible to passersby, which draws more people, which deepens the circle, which raises the stakes for the performer, which raises the quality of the performance, which justifies continued attention.
You are simultaneously audience and amplifier. Your presence is productive.
This is what social networks have always wanted to replicate — the network effect at the level of individual participation. And it is what most of them fail to sustain, because they mistake engagement (time spent on platform) for presence (genuine stake in the social moment).
In the circle at Djemaa el-Fna, you have skin in the game. The storyteller is watching you. He reads your expression and adjusts his cadence. He sees when you're about to leave and escalates the tension in the narrative. You are not a metric. You are a person who is either present or absent, leaning in or stepping back, and the feedback is immediate and mutual.
This is what Silicon Valley calls "the engagement loop." In Marrakech, they have been running it without servers for ten centuries.
On the stranger at the gate
There is a concept in Islamic urban philosophy called musafir — the traveler, the stranger, the one who passes through. The treatment of the musafir is, across the literature, a kind of moral test case for a society. How you receive the stranger who arrives at your gate tells you something essential about who you are.
Djemaa el-Fna is, among other things, a technology for receiving strangers.
Every night, it draws an impossible mixture of people: Marrakchi residents, Moroccan visitors from other cities, French tourists, backpackers, businesspeople, families, solitary travelers, the elderly, children. It does not segment them. It does not offer them different products at different price points. It places them all in the same physical space and subjects them to the same forces — the smoke, the noise, the insistence of the callers, the gravity of the circles.
And something happens in that shared subjection. You find yourself standing next to someone whose life is entirely unlike yours, both of you watching the same acrobat attempt the same impossible balance, and for the duration of that attempt, you are oriented toward the same thing. You are, briefly, a community.
This is not nothing. In a world of algorithmic personalization — where every feed is tuned to confirm what you already believe, and you are rarely placed in the same information space as someone different — the experience of shared orientation toward a common spectacle is increasingly rare. Djemaa el-Fna manufactures it every night, for free, through the ancient technology of fire and performance and open space.
The henna artist's offer
On my second evening in the square, a young woman approached me and offered to draw henna on my hand.
I declined, and she moved on immediately — no pressure, no performance of offense. But in the two seconds of the exchange, something passed between us that I've been thinking about since: she read me instantly. Not my name or my story, but enough. A Tunisian, from the way I stood and the Arabic I used. Not a typical tourist. Not a mark for the inflated-price gambit. Possibly someone who'd negotiate in Darija. She calibrated accordingly.
This is what happens in the square thousands of times per evening: rapid, embodied, high-bandwidth social cognition. People reading each other through posture, language, eye contact, dress, response to approach. Building working models of strangers in seconds. Adjusting behavior in real time.
We call this, somewhat dismissively, "street smarts." But it is in fact a profound cognitive capacity — the ability to rapidly model another person's context, expectations, and likely responses, and to act effectively on that model.
It is, I would argue, the foundational skill of anyone who works with people: in sales, in management, in diplomacy, in design. And it is a skill that is best learned not in a classroom but in a square.
What I take back
I work in connectivity. My startup makes it easier to stay connected across borders. And I believe in that mission genuinely — the friction of international mobile connectivity is a real problem that costs real people real money and real time.
But Djemaa el-Fna reminds me that connectivity, in the deepest sense, is not a technical problem.
The square has perfect connectivity. Not because of any infrastructure. Because it has solved the harder problem: it creates the conditions in which people want to be connected. It generates the social gravity that draws people into proximity, and then it gives them something to orient toward together.
What would it look like to build technology that did that? Not technology that connects you to people you already know and content you already agree with — but technology that places you, occasionally, in the same orientation as a stranger, facing something that neither of you chose?
I don't know the answer. But every time I stand in Djemaa el-Fna at 9pm, watching the circles form in the firelight, I feel the shape of the question more clearly.