Playing in dirt doesn’t make the immune system stronger in the sense of fighting germs harder. What it seems to do is teach the immune system when not to overreact. That’s why the payoff people talk about is fewer allergies and less asthma, not fewer colds.
The benefit appears to come from the variety of living things in soil. The same soil can also hold tetanus spores and lead, so the useful question is what kind of dirt, and how kids play in it.
What the Evidence Shows About Allergies and Asthma
The most striking real-world evidence comes from two farming communities. Amish and Hutterite children share similar genetic roots and diets. But Amish families farm by hand with animals near the home, while Hutterites use industrial farming. Asthma affected about 5% of Amish schoolchildren versus 21% of Hutterite children, and allergic sensitization about 7% versus 33%.1PubMed Central. From Amish farm dust to bacterial lysates: The long and winding road to protection from allergic disease In a smaller group, none of the Amish children had asthma, compared with 1 in 5 Hutterite children.2PubMed Central. Innate Immunity and Asthma Risk in Amish and Hutterite Farm Children Amish children also had lower blood levels of IgE, the antibody behind allergic reactions.3PubMed Central. Innate Immunity and Asthma Risk in Amish and Hutterite Farm Children
It is an observational comparison, so it shows a strong link but can’t prove a single cause. Barn dust, animals, and other farm exposures all come together, so researchers can’t pin the difference on soil alone.
That matters for a backyard. Amish children breathe barn dust and handle animals daily from infancy, far beyond weekend mud play. A sandbox may give a smaller dose of the same kind of exposure, so expect a nudge, not a guarantee.
Cities show a similar pattern. City children who lived more than about 1 km from green areas with highly varied soil bacteria were considerably more likely to have allergies.4PubMed Central. Urban soil Gammaproteobacteria diversity, shaped by biodiverse land use, predicts a lower risk of developing allergy in children The link held even after accounting for neighbourhood income and land use.5PubMed Central. Urban soil Gammaproteobacteria diversity, shaped by biodiverse land use, predicts a lower risk of developing allergy in children So the variety of microbes nearby, not just being outdoors, may be what counts.
Controlled trials are encouraging but small. When daycare yards were covered with forest floor, sod, and planters, children’s skin bacteria became more varied and their blood showed more calming immune signals within weeks.6PubMed Central. Biodiversity intervention enhances immune regulation and health-associated commensal microbiota among daycare children A similar trial with a placebo comparison found the same kind of calming shift in young children.7PubMed. A Placebo-controlled double-blinded test of the biodiversity hypothesis of immune-mediated diseases: Environmental microbial diversity elicits changes in cytokines and increase in T regulatory cells in young children The trials measured immune signals, which doesn’t yet prove fewer allergies years later. Finland ran a nationwide programme from 2008 to 2018 encouraging nature contact instead of allergen avoidance, and allergy burden fell, but without a comparison group it can’t prove nature contact caused it.8Allergy / Wiley Online Library. Immunological resilience and biodiversity for prevention of allergic diseases and asthma
Why Scientists Think Dirt Matters
The idea was first called the hygiene hypothesis, and it held that cleaner childhoods led to more allergies. Scientists now frame it as the old friends idea: losing microbes humans lived with for millennia that help keep immune reactions balanced, rather than catching fewer infections.9PubMed Central. Mycobacterium vaccae NCTC 11659, a Soil-Derived Bacterium with Stress Resilience Properties, Modulates the Proinflammatory Effects of LPS in Macrophages These are mostly harmless everyday microbes that teach restraint, not illness-causing germs. Getting sick more doesn’t make you stronger, and the idea sits comfortably beside clean water, vaccines, and handwashing.
The reasoning is evolutionary. Humans were exposed to soil microbes throughout evolution, and these helped shape the gut’s bacteria and immune resilience.10People and Nature. Scoping review on soil microbiome and gut health—Are soil microorganisms missing from the planetary health plate? Industrialized, urban populations have higher rates of chronic inflammation, allergies, and inflammatory diseases.11PubMed Central. Mycobacterium vaccae NCTC 11659, a Soil-Derived Bacterium with Stress Resilience Properties, Modulates the Proinflammatory Effects of LPS in Macrophages Some people’s genes may make them more vulnerable when these exposures are missing, which helps explain differing disease rates between populations.12PubMed Central. The Hygiene Hypothesis, Old Friends, and New Genes
Soil is the richest microbial environment we touch. A gram of soil holds several thousand species, about ten times more than human stool.13PubMed Central. Does Soil Contribute to the Human Gut Microbiome? But around 80% of soil cells are dormant, so the number of active species may be similar to the gut.14PubMed Central. Does Soil Contribute to the Human Gut Microbiome? City soils with less biodiversity are thought to raise health risks, while biodiverse soil can help suppress harmful germs and shape a healthier microbiome.15npj Urban Sustainability. Harnessing soil biodiversity to promote human health in cities
What Happens in the Body When Kids Touch Soil
Even short contact with soil and plant material immediately makes the bacteria on hands more varied.16PubMed Central. Short‐term direct contact with soil and plant materials leads to an immediate increase in diversity of skin microbiota Digging, handling leaves, and playing on grass all pass everyday environmental microbes to hands and skin. That is a transfer, not an infection, and the skin is a surface where the immune system constantly samples what it meets.
The effect doesn’t last, though. After gardening, most of the soil’s imprint on skin disappeared within 12 hours.17Urban Agriculture & Regional Food Systems. Garden soil bacteria transiently colonize gardeners’ skin after direct soil contact Regular, repeated contact keeps soil microbes present on skin more of the time.18Urban Agriculture & Regional Food Systems. Garden soil bacteria transiently colonize gardeners’ skin after direct soil contact So daily or frequent play likely matters more than a single muddy day.
Some microbes travel further. Young children put hands, toys, and sticks in their mouths, so some soil microbes are swallowed without anyone intending it. The gut holds a large share of the body’s immune cells, which makes it an important place for this contact. There’s no need to encourage eating dirt, since ordinary hand-to-mouth habits already provide some exposure.
The immune effect is calming rather than boosting. The immune system has calming cells that keep reactions from going too far. Children in the daycare trial had more of these cells and more anti-inflammatory signals after their yards were greened.19PubMed Central. Biodiversity intervention enhances immune regulation and health-associated commensal microbiota among daycare children These changes tracked a group of bacteria on the skin that became more diverse with the greener yards.20PubMed. A Placebo-controlled double-blinded test of the biodiversity hypothesis of immune-mediated diseases: Environmental microbial diversity elicits changes in cytokines and increase in T regulatory cells in young children Farm children’s immune cells also responded to bacterial triggers with less inflammation than those of non-farm children.21PubMed Central. From Amish farm dust to bacterial lysates: The long and winding road to protection from allergic disease
Can Dirt Help With Stress Too
One soil bacterium has shown effects on stress in mice. A heat-killed form of Mycobacterium vaccae made mice more resilient to chronic social stress and less fearful.22PubMed Central. Immunization with a heat-killed preparation of the environmental bacterium Mycobacterium vaccae promotes stress resilience in mice Because the bacterium was heat-killed, the animals weren’t infected with a living germ. It also prevented stress-triggered gut inflammation in those mice.23PubMed Central. Immunization with a heat-killed preparation of the environmental bacterium Mycobacterium vaccae promotes stress resilience in mice The protection disappeared when the mice’s calming immune cells were removed.24PubMed Central. Immunization with a heat-killed preparation of the environmental bacterium Mycobacterium vaccae promotes stress resilience in mice The same bacterium helped mice cope with a separate stress test, likely through gut-brain signalling.25PubMed Central. Effects of Immunization With the Soil-Derived Bacterium Mycobacterium vaccae on Stress Coping Behaviors and Cognitive Performance in a “Two Hit” Stressor Model In lab dishes, it and a fat isolated from it reduced inflammatory responses in immune cells.26PubMed Central. Mycobacterium vaccae NCTC 11659, a Soil-Derived Bacterium with Stress Resilience Properties, Modulates the Proinflammatory Effects of LPS in Macrophages27PubMed Central. Identification and characterization of a novel anti-inflammatory lipid isolated from Mycobacterium vaccae, a soil-derived bacterium with immunoregulatory and stress resilience properties
For your child, these were injections in mice under controlled lab conditions, not children playing outside. Outdoor play has well-known mood benefits from movement and fresh air regardless. Claims that gardening works like an antidepressant go beyond the evidence.
The Real Risks in Dirt
Tetanus spores are common in soil, dust, and manure.28Centers for Disease Control and Prevention. Tetanus: Causes and How It Spreads They enter through broken skin, especially wounds contaminated with dirt or feces.29Centers for Disease Control and Prevention. Tetanus: Causes and How It Spreads A scrape, splinter, or puncture can push spores into tissue where oxygen is scarce. Deep, dirty wounds are riskier than shallow clean ones, though any break in the skin is a possible entry. Most cases show up within 14 days of the wound.30World Health Organization. Tetanus Vaccination prevents tetanus, so staying up to date is the key protection.31World Health Organization. Tetanus
After a muddy cut, rinse the wound well with clean running water and soap to flush out dirt. Cover it with a clean dressing and watch it over the following days. If the wound is deep, heavily contaminated, or you aren’t sure the child’s tetanus shots are current, call a doctor or clinic. New stiffness or spasms in the following couple of weeks need urgent medical attention.
Lead and other metals are the second concern. Children face more risk from contaminated soil than adults, mostly from swallowing it and then from skin contact.32Journal of Geochemical Exploration. Urban park soil contamination by potentially harmful elements and human health risk in Peshawar City, Khyber Pakhtunkhwa, Pakistan Lead from old leaded fuel can persist in soil for decades after it’s banned.33PubMed. Bioaccessibility and children health risk assessment of soil-laden heavy metals from school playground and public parks in Accra, Ghana In one city, dust on playground equipment carried more than twice the lead of the soil itself.34PubMed. Spatial distribution of lead contamination in soil and equipment dust at children’s playgrounds in Beijing, China So old urban areas, roadsides, and spots near older painted buildings deserve caution.
Parasites from pets are the third. Roundworm from dog and cat feces is considered the most common worm infection in the US.35PubMed Central. The Hygiene Hypothesis and Its Inconvenient Truths about Helminth Infections Its larvae passing through the lungs can cause asthma-like symptoms.36PubMed Central. The Hygiene Hypothesis and Its Inconvenient Truths about Helminth Infections In modern settings, these worms may worsen rather than protect against asthma.37PubMed Central. The Hygiene Hypothesis and Its Inconvenient Truths about Helminth Infections
How to Let Kids Get Dirty Safely
Messy, hands-on play with soil, mud, and natural materials can increase skin and gut microbe variety and also supports curiosity and creativity.38Cities & Health. Addressing microbial inequity in urban children: the case for dirty play A woodland edge or meadow is likely richer than bare or compacted ground. Look for plants, leaf litter, and loose soil. Bare, packed, or heavily paved areas offer little soil life, and digging and building give more contact than watching from a bench. Before settling on a spot, check for old paint, roadside lead, and animal waste.
- Keep tetanus vaccinations up to date and clean dirty wounds promptly.39Centers for Disease Control and Prevention. Tetanus: Causes and How It Spreads
- Cover sandboxes so cats can’t use them.
- Have yard soil tested for lead if your home is old or near busy roads.
- Wash hands before eating, especially after playground use.
A soil test through a lab or local extension service tells you how much lead is present, which guesswork can’t. If the result is high, you can cover bare ground with mulch or grass and build raised beds with clean soil.
Washing before meals cuts swallowed lead and pet parasites without undoing the benefit. Skin still gets regular contact during play, and the benefit comes from frequent exposure, not from never washing.
Families without a yard have options: community gardens, potting soil on a balcony, parks with leaf litter and native plantings, or weekly forest visits. Regular beats rare.

