Internet History

Why Does the Dark Web Exist?

Its reputation says criminal underworld. Its actual origin story says something almost embarrassingly bureaucratic.

The dark web exists because U.S. Naval Research Laboratory scientists in the mid-1990s needed a way for government personnel to browse the internet and communicate online without revealing their identity or location to anyone monitoring the connection — including hostile foreign governments. That research produced 'onion routing,' the layered-encryption technique underlying Tor, which was later released publicly and adopted by a much wider range of users, including journalists, activists, ordinary privacy-conscious people, and, alongside them, criminals who found the same anonymity useful for illegal purposes.

Ask most people why the dark web exists and you'll get some version of the same answer: criminals needed a place to hide, so they built one.

That's a satisfying story. It's also backwards. The technology underneath the dark web wasn't built by criminals at all — it was built, funded, and initially used by U.S. government researchers, for a problem that had nothing to do with drugs, weapons, or anonymous marketplaces. The dark web as most people picture it today is less a founding purpose and more a side effect, a use case nobody in the original room was particularly trying to create.

Illustration of a naval research emblem fading into a layered onion-routing network diagram
Originally developed byU.S. Naval Research Laboratory
Original purposeAnonymous government communications
Core techniqueOnion routing (layered encryption)
Made publicReleased as open-source software in 2004

TL;DR

Quick answer

The dark web exists because onion routing, its core anonymity technology, was developed by U.S. Naval Research Laboratory scientists in the mid-1990s to protect government communications, then released publicly in 2004 — after which a much broader population, including criminals but also journalists and privacy-conscious users, adopted the same network.

Last reviewed2026-07-27
Reading time8 min read
DifficultyIntermediate
EvidenceStrong
OriginU.S. Naval Research Laboratory, mid-1990s
Original usersGovernment and military personnel
Went public2004, as open-source software
Funding continued viaU.S. State Department and nonprofit grants
Current useJournalists, activists, criminals, ordinary users alike

The Basics

Built for spies, adopted by everyone

The technical foundation of the dark web is a technique called onion routing, developed in the mid-1990s by researchers at the U.S. Naval Research Laboratory. Their problem wasn't crime — it was a genuine operational challenge: government agents and intelligence personnel needed to browse the internet and send communications without an adversary being able to trace that activity back to a specific person, location, or agency.

Onion routing solved this by wrapping a message in multiple layers of encryption and passing it through several independent relay points, each one only able to see the step immediately before and after it, never the message's full origin and destination at once. The name comes from that layering — peeling back one encrypted layer at a time, like an onion.

In 2004, this research was released publicly as open-source software, eventually becoming the Tor Project, maintained by a nonprofit and continuing to receive funding from a mix of government grants (including the U.S. State Department, which has an interest in supporting internet freedom abroad), private donations, and other sources. Once public, its user base expanded far beyond its original government audience — and the dark web, as a destination reachable through that same anonymity network, grew alongside it.

The chain of cause and effect worth understanding

  • A specific government need (anonymous communication for personnel) created the underlying technology
  • That technology was released publicly, rather than staying restricted to its original use case
  • Once public, the same anonymity that protected government agents also protected anyone else who wanted it, for any reason

From naval research to public internet layer

  1. Mid-1990s

    U.S. Naval Research Laboratory scientists, including Paul Syverson, begin developing onion routing to protect government communications from traffic analysis.

    Established the core technical concept that would eventually underlie the entire dark web.

  2. Early 2000s

    Development continues with additional support, refining the onion routing concept into a more complete, usable system.

    Moved the technology from theoretical research toward something that could actually be deployed and used.

  3. 2004

    The software is released publicly as open-source, laying the groundwork for what would become the Tor Project.

    Opened the technology to any user, not just its original government audience, fundamentally changing who it would eventually serve.

  4. 2006 onward

    The Tor Project is established as a nonprofit, continuing development with funding from a mix of government grants, nonprofits, and private donations.

    Gave the technology institutional stability and long-term development independent of any single government agency.

  5. 2010s-present

    Dark web marketplaces, forums, and hidden services proliferate using the same anonymity network, alongside continued use by journalists, activists, and privacy-conscious individuals.

    Represents the point where the dark web's public reputation diverged sharply from its founding purpose.

The U.S. government built the tool, and the U.S. government still partly funds the nonprofit that maintains it

It's a genuinely odd detail that tends to surprise people: part of the Tor Project's funding, to this day, comes from the U.S. State Department, an institution with an interest in supporting internet freedom and secure communication for activists and journalists in restrictive countries abroad — the same government whose law enforcement agencies simultaneously investigate crimes committed using that exact technology.

It's a useful reminder that 'who built it' and 'who benefits from it' were never destined to be the same group forever — a tool built for one institutional purpose can end up serving purposes that same institution finds genuinely inconvenient.

Misconception

The dark web was created by hackers or criminals specifically to enable illegal activity.

Reality

The underlying anonymity technology was developed by U.S. Naval Research Laboratory scientists for legitimate government communication security purposes, then released publicly and later adopted by a much broader population, including criminals, but also journalists, activists, and ordinary privacy-conscious users.

From a naval research problem to a global anonymity network

  1. Mid-1990s

    Onion routing research begins at the Naval Research Laboratory to protect government communications from surveillance.

    Set the technical foundation years before any public or criminal use existed.

  2. 2002-2003

    An early alpha version of what would become Tor is developed and tested.

    Turned theoretical research into a working, testable system.

  3. 2004

    The software's source code is released publicly.

    Removed the technology from exclusive government control, opening it to anyone who wanted to use or build on it.

  4. 2006

    The Tor Project is formally established as an independent nonprofit organization.

    Created long-term institutional support separate from any single government sponsor.

  5. 2010s

    Dark web marketplaces gain mainstream public attention following high-profile cases like the Silk Road.

    Shaped the dark web's dominant public reputation, largely overshadowing its origin story in popular understanding.

A tool built to protect government secrets now regularly frustrates government investigations

There's a genuinely striking irony sitting at the center of this story: a technology engineered specifically to help government personnel evade surveillance now serves as the primary obstacle law enforcement agencies from that same government run into when investigating dark web crime. The tool didn't change sides — it just kept doing exactly what it was built to do, for whoever happened to be using it.

If the government built it for their own agents, why release it publicly at all?

Why would an intelligence-adjacent research project deliberately give away the exact tool meant to protect its own personnel?

It comes down to a specific technical requirement of anonymity systems that isn't obvious at first: onion routing only actually protects anyone if enough different types of people are using it. If the network were used exclusively by government agents, then simply detecting 'someone is using this anonymity tool' would itself reveal they were likely a government agent, defeating the whole purpose. Releasing it publicly and mixing government traffic in with journalists, researchers, and ordinary users was necessary specifically to keep government users anonymous within a much larger, more diverse crowd.

Continued government funding alongside criminal prosecution

Public funding disclosures have documented the Tor Project receiving financial support from U.S. government sources, including State Department-linked grants aimed at supporting internet freedom internationally, in the very same years federal prosecutors were building major cases against dark web marketplace operators using that same network.

The dual relationship isn't a contradiction so much as a demonstration of the anonymity-requires-diversity principle in action — the government needs the network to stay broadly useful and widely adopted, even while parts of that same government work to catch specific bad actors using it.

What it was built for versus what it's mostly known for

The gap between founding intent and public reputation, laid out directly.

Original Purpose (1990s)Current Public Reputation
Primary usersGovernment and military personnelGeneral public, criminals, journalists, activists
Stated goalAnonymous government communicationsAssociated primarily with illicit marketplaces
Funding sourceNaval Research LaboratoryMix of government grants, donations, nonprofits
confirmed

So why does the dark web actually exist?

It exists because of a legitimate government need for anonymous communication, not because it was built by or for criminals — the criminal use came later, as a side effect of the technology being made public.

The historical record is well-documented: onion routing began as U.S. Naval Research Laboratory research, was released publicly in 2004, and only afterward became associated with the marketplaces and illicit activity that now dominate its public reputation.

What this origin story says about technology and intent

The dark web's history is a clean example of a pattern that shows up constantly in technology: the reason something was built and the reason it's remembered rarely stay the same for long. Encryption, the internet itself, even the postal system in earlier centuries, were all shaped by purposes their eventual dominant reputation barely resembles. A tool's founding intent explains where it came from; it almost never predicts what it will actually become once it's handed to everyone.

Questions people ask

If this got you curious, go here next

Is Tor untraceable?

A closer look at how well the technology actually delivers on its founding purpose today.

What is an onion address?

The technical building block that grew directly out of this origin story.

What is Tails OS and why do people use it?

A modern tool built on the same anonymity principles for a similarly wide range of users.

Can FBI track Tor Browser?

How the same government whose research built this technology now works to investigate it.

How to view the dark web

The practical, modern-day version of accessing the network this history produced.

It was never built to be a hideout — it was built to be crowded

The dark web doesn't exist because someone wanted to build a criminal underworld. It exists because a group of government researchers needed anonymity to actually work, and anonymity, it turns out, only works when it's shared with millions of people who have nothing to do with the reason it was invented.

You now know

  • The dark web's underlying technology, onion routing, was developed by the U.S. Naval Research Laboratory in the mid-1990s
  • Its original purpose was anonymous government and military communication, not crime
  • The software was released publicly in 2004, expanding its use far beyond its original audience
  • Anonymity systems like this require a large, diverse user base to function, which is why broad public adoption was necessary from the start

Safety note

Educational, not operational

This guide is educational. It does not provide instructions for illegal activity, evading law enforcement, buying prohibited goods, or attacking systems. Laws and risks vary by country, so stay within your local rules and avoid interacting with unknown services.

Common myth

Myth vs reality

Myth

The dark web was created by hackers or criminals.

Reality

It originated from legitimate U.S. government research into anonymous communication.

FAQs

Questions people ask

Sources

Further reading

  • Naval Research Laboratory onion routing research historyU.S. Naval Research Laboratory
  • Tor Project official history and funding disclosuresThe Tor Project

Continue learning

Next useful step

Keep going

The next door is usually the interesting one

The answer you came for touches a few neighboring questions. These are the ones most likely to make the picture click.

What you should remember

It was never built to be a hideout — it was built to be crowded

  • The dark web doesn't exist because someone wanted to build a criminal underworld. It exists because government researchers needed anonymity to actually work, and anonymity only works when it's shared with millions of people who have nothing to do with why it was invented.
  • The dark web's underlying technology, onion routing, was developed by the U.S. Naval Research Laboratory in the mid-1990s
  • Its original purpose was anonymous government and military communication, not crime
  • The software was released publicly in 2004, expanding its use far beyond its original audience

A few useful next steps

Where this question wanders next

The dark web is less a single tunnel than a set of side passages. These are the useful ones from here.

If this made you wonder

dark web collection

Follow the causes

1

What Are the Uses of Hidden Services on the Tor Network?

What Are the Uses of Hidden Services on the Tor Network points to a real part of the privacy and dark web story, but the useful answer is smaller and more practical than the myth. It is technology, people, incentives, and risk stacked together.

2

What Is the Dark Web, and How Do You Access It?

Somewhere between a rumor and a research paper, the actual dark web is smaller, more accessible, and considerably less mysterious than its reputation suggests — here's the whole picture, definition and access instructions together.

3

What Is The Dark Web?

Not a digital sewer. Not a myth. Just a small, locked room at the back of the internet you already use every day.

4

What Are the Uses of Hidden Services on the Tor Network?

The New York Times runs one. So does a whistleblower drop box used by dozens of newsrooms. And, yes, so do some marketplaces you've heard of. Here's the full range.

5

Deep Web vs Dark Web: What Is the Difference?

The deep web is everything online that search engines do not index, such as private email, online banking pages, subscription databases and account dashboards. The dark web is a much smaller part of the internet that is intentionally hidden and normally requires specialized software such as Tor to access.

Questions people ask first

Choose by the time in your pocket