Versailles was drowning in its own filth. Literally.
The richest palace in Europe. Gold on the walls, mirrors to the ceiling, and a stench that hit you before you saw anything.
There were no modern sewers. No treatment plant. And, for most of the palace’s life, no flushing toilets.
This engineering failure served a court of thousands, by some estimates as many as 10,000 people at its peak.
So how did Europe's wealthiest, most technically accomplished court end up unable to flush a toilet?
The answer lies in the ground on which Versailles was built.
In engineering terms, Louis XIV chose to build on a site that was almost perverse. He built his palace of fountains on a plateau, over marshy ground, with no usable watercourse on the site and no natural head of water to speak of. The nearest serious river, the Seine, lay kilometers away and well over a hundred meters below. There was almost nothing there. That was the first problem. And solving it would set the pattern for everything that came after.
The next problem was the building itself, because its scale is the real issue.
Versailles is not one structure. It's a system. The palace covers about 63,000 square meters of floor space and holds roughly 2,300 rooms. The garden façade runs for hundreds of meters end to end. Add the wings, the stables, the outbuildings, and you get a complex built to house a permanent population the size of a small town.
To feed and clothe that town, Hardouin-Mansart built a service block called the Grand Commun. An imposing rectangle, 82 by 76 meters, with six floors around a central courtyard and some 15,000 square meters of kitchens and servant quarters. Finished in 1684, it was a logistical marvel: food for thousands, prepared and moved daily.
The architects could plan for inputs. Getting food, wine, firewood, and people into the palace was a solved problem, engineered down to the floor plan.
Versailles was the most advanced building of its century. It ran on one of the largest hydraulic networks ever built, a system of reservoirs and pipes that pushed water uphill against gravity to feed some 1,600 jets across the gardens on command. The engineering that made those gardens dance was genuinely ahead of its time.
Water to spare for spectacle. But almost none of it was plumbed to where people actually lived.
At its peak, Versailles could draw up to ten thousand people a day. Courtiers, servants, guards, cooks, hangers-on, an entire city funneled through one building and its wings.
Credit: Heritage Images / Getty Images
The palace relied overwhelmingly on private close-stools and chamber pots, emptied by hand, with only a scattering of shared latrines. Not enough. Not close to enough.
In a modern building, that's what drainage is for. At Versailles, waste drainage, as we understand it, simply didn't exist.
The palace relied on latrines over cesspits, the fosses d’aisance, which had no running water.
Waste dropped in and, from most pits, trickled away through crude underground channels to two ponds outside the palace. Crews dug out what stayed behind by hand.
By many accounts, the palace’s passages and courtyards reeked of filth. In a stone building with poor drainage, it had nowhere to go.
And that design carries a hidden flaw that only reveals itself at scale. An outhouse works because it serves a handful of people. Serve thousands, and the pits fill faster than anyone can empty them.
When the latrines were full, locked, or simply too far away, people improvised, and the stories say they did so everywhere, in any quiet, out-of-sight corner.
Legend has it the servants emptied chamber pots out of the attic windows, a story the palace’s own historians now dismiss as a Paris habit that Versailles’s cesspits made unnecessary.
How does the richest court in Europe, staffed by the sharpest engineers alive, end up with human waste fouling its corridors?
It's tempting to blame it all on one man's taste – Louis XIV, the king who'd rather have fountains than flushing toilets. But that's a little unfair.
For one, nobody in the 1680s knew that germs cause disease. Germ theory was still two centuries away. People blamed foul air, so a reeking hallway was unpleasant and vaguely unhealthy, and nobody was in a hurry to fix it.
Rank made it worse. Privacy and attendance at the close-stool were status markers themselves: the higher your rank, the better your seat, and the more servants handled the rest.
Don’t forget the building itself. By the time decent plumbing was even an option, the heart of Versailles was already built and finished. Solid stone, no waste pipes running up through the walls, barely any water reaching the rooms people actually lived in.
Threading a modern system into all that finished stone was slow, pricey, and a real headache. So no, it wasn't one bad call by one king. It was a whole pile of problems, all landing at once in the same beautiful, terrible building.
Photo by Thomas Garnier
It all comes back to one hard technical limit. Flushing needs water right there at the fixture, and Versailles had almost none where people lived.
Nearly every drop the palace pumped went up and out to the fountains, the canal, and the gardens. Outside a few royal rooms, no pressurized pipes ran to where people lived.
That makes what happened next all the stranger.
When the flushing toilet finally arrived, it barely spread at all. Under Louis XV, in the mid-18th century, English-style water closets began to appear in the royal private apartments. It stayed rare, but not unique. Over the following decades, a handful of royals had their own installed. It worked, and it exposed the real problem in one stroke: the walls had no network for the pipes to join.
So you see, the technology wasn't missing. What was missing was water at the fixture to flush, and a cheap way to thread pipes through an already finished palace.
Marie-Antoinette is recorded as having one in the 1780s. But each was a bespoke, wall-cracking renovation, granted apartment by apartment, only to the most powerful people in France.
By 1789, after decades of proven, working flush toilets inside the building, they were still a rarity for a population in the thousands, and the ones we know of belonged to the royal family.
It was cheaper and far less disruptive to keep the old cesspits and their crude drains than to retrofit a modern sewer into the finished stone. So the palace stayed frozen. A handful of futuristic toilets floating atop a seventeenth-century system that barely changed beneath them.
The most serious attempt to think the problem through came right at the end, and it wasn’t about Versailles at all. The Académie royale des sciences appointed a commission to examine a report on the city’s cesspits by three Paris apothecaries. They backed it with real scientific firepower, reportedly including Antoine Lavoisier, the man who figured out what oxygen actually does and effectively invented modern chemistry.
They didn't redesign the toilets. They studied the gas.
Because the pits didn't just smell, they killed. As waste rotted in those sealed chambers, it released what people at the time called "mephitic air": a mix of gases from rotting waste, concentrated enough to drop a man where he stood.
The workers sent down to empty the cesspits were genuinely dying in them, dropping unconscious into the very filth they'd come to clear. So the finest chemist in France looked at the cesspit problem and saw, quite reasonably, a chemistry problem, a toxic-gas problem, not a plumbing one.
Their best practical fix was ventilation. Bellows blew fresh air across the pit while pipes carried the fumes up and out above the roof. A furnace burned off the worst of the gas. And the workers’ own trick, a lit candle lowered on a string, was written up as the way to check the air before anyone climbed in.
The country’s sharpest scientific minds vetted the problem, and they endorsed making the medieval cesspit a little safer to empty rather than abolishing it.
Versailles got proper toilets long after it stopped being a palace. The Revolution drove the court out in October 1789, and a few years later, the Revolutionary authorities stripped the palace bare.
In 1837, Louis-Philippe opened a museum inside it, dedicated 'to all the glories of France.'
However, the deepest modernization came much later still. The Grand Versailles project, launched in 2003, was initially budgeted at roughly €400 million. New boilers. New electrical systems. Fire detection. And clean, modern, working toilets, still being added, for millions of tourists who now walk the same corridors the courtiers once fouled.
But look at how they did it, because this is where the story finally makes engineering sense.
Remember why the flush toilet never spread? There was no water at the fixture and no shared route to run pipes through, so every installation meant cracking open finished walls one at a time.
So the first phase of the modern project, begun in 2003 and running into the 2010s, focused on building what the Sun King skipped: the palace's primary networks. A central backbone that water, power, heat, and drainage could finally run along, instead of being improvised room by room.
The engineers cut technical service tunnels beneath and through the building. Think of them as a hidden circulatory system, continuous channels that carry water, power, heating, and drainage from a central source, wing by wing.
Then came the clever part, and it's the kind of move that makes engineers grin. You legally cannot gut the historic royal apartments to cram machinery inside them.
Instead of fighting the old architecture, they used it. They took the Grand Commun, the huge service block Hardouin-Mansart built in 1684 to feed the court, and gave it a second life. The Army handed it back to the palace in 1996, and restored it in stages, with the last major phase delivered in 2015. The building that once managed the court’s inputs now houses the palace’s administration, staff, and research center.
A power hub was created in the Grand Commun. For the first time in the building’s three-and-a-half-century history, waste, water, heat, and power shared one engineered route instead of a patchwork of buckets, staircases, and cesspit drains.
The scale of the effort tells you everything about how hard this retrofit really was.
The work has run for more than two decades, starting in 2003 and still going. Millions of people walked through it every year, so engineers had to rebuild the palace’s interior around them while it stayed in operation. Phase two alone was budgeted at more than 170 million euros. And that's just one part of the program.
Photo by Vicki Jauron, Babylon and Beyond Photography/Getty Images
Now hold that up against the original. Louis XIV built his entire water spectacle, the Grand Canal, the fountains, the Machine de Marly, over thirty-odd years, from nothing, on open ground.
Giving the palace the plumbing he had skipped has already taken two decades, cost a modern fortune, and still isn't done. But only because every new pipe had to be threaded through walls three and a half centuries old, without damaging the very thing the world comes to see.
And that raises another question that this whole story leaves behind.
How many legendary structures endure not because of their creators' brilliance, but because later minds stepped in to patch their blind spots?