There are 195 countries on Earth, each with its own legal system. Some have evolved over centuries of common law precedent. Some are built on codified civil law. Some are rooted in religious doctrine. Some are whatever the current dictator felt like on a Tuesday.
Now imagine all of that collapses into a single legal code. Every human on the planet wakes up tomorrow under the same laws.
The first question, obviously, is: whose?
The selection problem
This is where the thought experiment breaks before it even starts. There is no neutral legal system. Every set of laws reflects someone's values, someone's history, someone's idea of what a person is allowed to do. And those ideas are fundamentally incompatible across large portions of the world's population.
Take something as basic as free speech. The First Amendment to the US Constitution protects nearly all speech, including hate speech. Germany criminalises Holocaust denial. Thailand has lèse-majesté laws that imprison people for insulting the monarchy. Pakistan's blasphemy laws carry the death penalty. These aren't minor policy differences. They're irreconcilable positions on what a human being is permitted to say out loud.
You cannot write a single free speech law that satisfies all four of those positions. You have to pick one, and three quarters of the world will consider it either dangerously permissive or oppressively restrictive.
Property, marriage, and the body
It gets harder from there.
Roughly 70 countries currently criminalise homosexuality. Over 30 recognise same-sex marriage. A unified legal code has to land somewhere on this spectrum, and wherever it lands, billions of people will consider the law either a moral abomination or a human rights violation. There is no middle ground that both sides accept. "Civil unions but not marriage" pleases approximately nobody.

Property law is equally fractured. In most Western nations, individual land ownership is a foundational right. Many indigenous legal traditions recognise communal land stewardship, where no individual can own the earth beneath their feet. China operates on a system where all urban land is technically owned by the state and leased to citizens. Forcing any one of these frameworks onto the other two would require dismantling how billions of people relate to the ground they live on.
Then there's bodily autonomy. Abortion law alone ranges from total bans with criminal penalties (El Salvador, where women have been imprisoned for miscarriages) to on-demand access through the second trimester (most of Western Europe) to state-funded provision as a constitutional right (France, since 2024). A unified law either criminalises something that half the world considers healthcare, or legalises something that the other half considers murder.
Who enforces this?
Laws without enforcement are suggestions. A universal legal code requires a universal enforcement mechanism. That means a global police force, a global judiciary, and a global prison system.
The International Criminal Court, which is the closest thing we currently have to global legal authority, covers only genocide, war crimes, crimes against humanity, and aggression. The United States, China, Russia, India, and Israel are not signatories. The ICC has issued 56 arrest warrants since its founding in 2002. It has completed roughly 10 trials. This is the institution that would need to scale from "occasionally prosecuting a warlord" to "enforcing traffic law in every village on Earth."
Local police would presumably still exist, but under whose authority? If a country's population disagrees with the unified law (and many would), their police force becomes either an occupying army enforcing foreign rules, or a mutinous force ignoring the global code. Neither option ends well.
The drug question
Drug policy is a clean example of why this fails.
Portugal decriminalised personal possession of all drugs in 2001. The policy has broadly been considered successful: drug-related deaths dropped, HIV infections among drug users fell by over 90%, and usage rates didn't spike. Meanwhile, the Philippines under Rodrigo Duterte ran extrajudicial killings of suspected drug users and dealers. Estimates suggest between 12,000 and 30,000 people were killed.
These two countries look at the same problem and see it from different planets. A unified drug law either forces Portugal's harm-reduction model onto cultures that consider drug use a capital offence, or imposes prohibition onto populations that have already demonstrated a better alternative. Both options provoke fury.
And this is just drugs. Apply the same logic to gun ownership, gambling, alcohol, sex work, euthanasia, genetic modification, data privacy. Every topic has a spectrum of positions, and every position on that spectrum is someone's deeply held conviction backed by cultural, religious, or practical experience.
The economic fracture
Legal systems don't just regulate behaviour. They structure economies. Contract law, corporate governance, employment regulation, taxation, intellectual property, inheritance. These vary enormously, and for practical reasons.
A minimum wage law set to suit Norway (where the cost of living is among the highest on Earth) would bankrupt employers in Bangladesh. Labour protections standard in France (35-hour work week, extensive leave, strong unfair dismissal protections) would be economically impossible for developing nations to implement overnight. Intellectual property rules that protect Western pharmaceutical patents are the same rules that prevent developing nations from manufacturing affordable generic medicines.

The World Trade Organisation already struggles to harmonise trade rules among willing participants. Harmonising the entire economic legal framework across 195 countries, many of which have structurally incompatible economies, isn't a matter of finding the right compromise. The right compromise doesn't exist.
What about the good parts?
There is a version of this idea that has a point. Universal human rights standards, consistently applied, would be genuinely beneficial. If every country actually enforced prohibitions on torture, slavery, arbitrary detention, and discrimination, the world would be meaningfully better.
The Universal Declaration of Human Rights already tries to do this. It was adopted by the United Nations General Assembly in 1948 with 48 votes in favour and none against. Seventy-eight years later, no country on Earth fully complies with it. Not one. The document exists. The laws exist. The enforcement doesn't.
Which is the real lesson of this thought experiment. The obstacle to global legal harmony isn't the absence of a good legal code. It's the absence of any mechanism to make powerful people follow rules they didn't write.
The quiet resistance
Even in countries with strong legal systems, laws work only because most people voluntarily comply. Compliance isn't about fear of punishment. It's about legitimacy. People follow laws they believe are fair, that reflect their values, that were created by processes they trust. Impose a foreign legal code on a population that had no say in its creation, and you don't get compliance. You get Northern Ireland. You get Catalonia. You get Quebec separatism. You get a hundred new independence movements overnight.
The European Union spent seventy years harmonising regulations among culturally similar, economically developed, geographically close nations that voluntarily joined. It still hasn't managed full legal harmonisation, and the UK left partly over the perception that its laws were being written in Brussels. Scaling that project to the entire planet, including nations with active civil wars, authoritarian governments, and completely different philosophical foundations for what law is and who it serves, isn't ambitious. It's incoherent.
The question "what if every country had the same laws?" sounds like a question about law. Really it's a question about whether 8 billion people can agree on what a good life looks like. The answer has been the same for all of recorded history, and it isn't yes.