Wastewater treatment is the multi-stage process of removing pollutants, organic matter, and disease-causing organisms from used water before it’s released back into rivers, lakes, or oceans, or reused for irrigation. The process works in phases, each targeting a different category of contamination: physical debris, dissolved organic waste, excess nutrients like nitrogen and phosphorus, and harmful pathogens. Globally, only about 52% of wastewater receives any treatment at all, with rates as low as 4.3% in low-income countries.
What’s Actually in Wastewater
Raw sewage is more complex than most people realize. It contains visible debris and suspended particles, but also dissolved pollutants you can’t see. Organic matter in wastewater consumes oxygen as it breaks down, which is measured as “biochemical oxygen demand.” When untreated sewage enters a river or lake, that oxygen demand can suffocate fish and other aquatic life. Beyond organic waste, raw sewage carries ammonia, phosphorus, and nitrogen, all of which fuel toxic algal blooms in waterways. It also contains bacteria, viruses, and parasites that cause diseases like cholera, hepatitis, and dysentery.
Industrial facilities add another layer of complexity. Factories may discharge heavy metals, solvents, or synthetic chemicals into the sewer system. In the U.S., the Clean Water Act requires these industrial sources to pre-treat their wastewater before sending it to a municipal plant, and every facility that discharges into public waterways needs a federal permit under the National Pollutant Discharge Elimination System (NPDES).
Preliminary and Primary Treatment
The first thing a treatment plant does is remove the obvious stuff. Screens, either manually or mechanically cleaned, catch large floating objects and debris. These are vertical or inclined bars spaced at equal intervals across the incoming flow. After screening, the water passes through grit channels where flow speed is controlled at about one foot per second, slow enough for sand, gravel, and other heavy mineral particles to settle out while lighter organic material stays suspended and moves forward.
Primary treatment follows, using large settling tanks called clarifiers. Here, gravity does most of the work. Heavier solids sink to the bottom as sludge, while oils and grease float to the surface and get skimmed off. This stage is purely physical. No chemicals or biological processes are involved, yet it removes a significant portion of suspended solids from the water before the next, more intensive phase begins.
Secondary Treatment: The Biological Phase
Secondary treatment is where the heaviest lifting happens. This stage uses living microorganisms (bacteria, nematodes, and other tiny organisms) to consume and break down the dissolved organic matter that physical settling can’t catch. It mimics what happens in nature when microbes decompose waste, just in a controlled, accelerated environment.
The most common approach is the activated sludge system. Air or pure oxygen is pumped into large tanks containing a mixture of wastewater and microbe-rich sludge. The oxygen fuels aerobic bacteria, which feed on organic pollutants and convert them into water, carbon dioxide, and more bacterial cells (biomass). Another method, the trickling filter, passes wastewater over beds of rock or plastic media coated with a film of microorganisms that absorb and digest pollutants as the water trickles past.
After the microorganisms have done their work, the water flows into another set of settling tanks where the bacterial biomass settles out. Some of that biomass gets recycled back into the aeration tanks to keep the microbial population healthy. The rest becomes part of the sludge that needs separate processing.
Tertiary Treatment: Polishing the Water
Many treatment plants add a third stage to remove nutrients and fine particles that survive secondary treatment. Excess nitrogen and phosphorus are the primary targets here, because even small amounts can trigger algal blooms downstream.
Phosphorus is typically removed through chemical precipitation. Iron, aluminum, calcium, or magnesium salts are added to the water, binding with dissolved phosphorus to form solid particles that settle out or get filtered. Nitrogen removal often involves shifting water chemistry so that dissolved ammonia converts to a gas that can escape the water, or using chlorine to oxidize ammonia into harmless nitrogen gas. Some newer approaches use specialized filter materials called ion-exchange resins, which swap harmless ions for the nitrogen and phosphorus molecules in the water, trapping the nutrients on a porous surface. Membrane filtration, which pushes water through extremely fine barriers, can also capture both nutrients and remaining fine suspended solids.
Disinfection: Killing Pathogens
Before treated water can be safely discharged, it needs disinfection to destroy any remaining bacteria, viruses, and parasites. The three main methods are chlorine, ultraviolet (UV) light, and ozone, each with different strengths.
- Chlorine is the most widely used and most cost-effective option. It’s reliable against a broad range of bacteria but performs poorly against viruses and parasitic cysts.
- UV light effectively inactivates most bacteria, viruses, and bacterial spores without adding any chemicals to the water. Its weakness is that at lower doses, it may not fully neutralize certain viruses, spores, or cysts.
- Ozone is a powerful oxidizer that works well against a wide range of organisms but costs more than either chlorine or UV.
Many plants use a combination. A facility might use UV as the primary disinfection step and add a small chlorine dose to provide residual protection as the water travels through discharge pipes.
What Happens to the Sludge
Every stage of treatment generates solid waste, collectively called sludge. Managing this material is a major part of plant operations. The sludge first goes through thickening, which reduces its volume by removing excess water. This step shrinks the amount of material that needs further processing and cuts the energy required for heating in later stages.
The thickened sludge then enters anaerobic digestion, a process where microorganisms break down organic solids in oxygen-free tanks. This happens in three distinct steps: first, complex proteins, fats, and carbohydrates are broken into smaller soluble molecules. Then, a second group of microbes converts those molecules into organic acids. Finally, a third group transforms the acids into methane and carbon dioxide. That methane is a valuable byproduct. Many treatment plants capture it and use it to generate electricity or heat their buildings.
After digestion, the remaining material is dewatered and, if it meets safety standards, can be applied to agricultural land as biosolids, a nutrient-rich soil amendment. Material that doesn’t meet standards goes to a landfill or incinerator.
The Challenge of “Forever Chemicals”
Conventional treatment plants were never designed to handle synthetic compounds like PFAS, a family of thousands of human-made chemicals used in nonstick coatings, waterproof fabrics, and firefighting foam. These molecules are extraordinarily stable, resisting the biological and chemical processes that break down most pollutants. Standard treatment can actually concentrate PFAS in the sludge without destroying them.
The EPA currently recognizes three technologies that can effectively remove PFAS: granular activated carbon (which adsorbs the chemicals onto a porous surface), ion-exchange resins, and high-pressure membrane systems. All three are expensive, and most municipal plants have not yet been retrofitted with them. As regulations tighten around PFAS discharge limits, upgrading treatment infrastructure to handle these persistent chemicals is becoming one of the industry’s most pressing problems.
Centralized vs. Decentralized Systems
Not all wastewater treatment happens at large municipal plants. In rural areas or places where terrain, distance, or low population density makes centralized sewers impractical, decentralized systems handle the job. The most familiar example is the septic tank, which provides primary settling on-site and uses a drain field where soil microbes perform secondary treatment naturally. More advanced decentralized units can include aeration, disinfection, and nutrient removal in compact packages serving a single building or small community.
These smaller systems can be effective and low-cost alternatives when properly maintained. The trade-off is that they require individual homeowners or small operators to manage upkeep, and performance varies widely depending on soil conditions, system age, and maintenance habits. Centralized plants benefit from professional staffing, continuous monitoring, and economies of scale, but they require enormous capital investment in pipes, pumping stations, and treatment infrastructure.
Global Treatment Gaps
The 52% global treatment rate masks enormous inequality. High-income countries treat about 74% of their wastewater. Upper-middle-income countries manage 43%. Lower-middle-income countries treat just 26%, and low-income countries treat only 4.3%. That means billions of people live in places where raw or barely treated sewage flows directly into waterways, contaminating drinking water sources and coastal ecosystems. Closing this gap is primarily a question of infrastructure funding, not technology. The treatment methods described above are well established and proven. The barrier is building and operating the plants in communities that need them most.

