Every summer, 10-year-old Lena spent two weeks at her grandparents' dairy farm in Bavaria. While her friends back in Munich developed runny noses and itchy eyes every spring, Lena hardly ever sneezed. Scientists have long observed this pattern: kids who grow up on farms get fewer allergies, asthma, and hay fever. Now, for the first time, researchers have figured out exactly why.

A team at the Dr. von Hauner Children's Hospital in Munich has identified the specific bacteria in barn air that protect farm children from these conditions. The discovery, published in the journal NEJM Evidence, traces a complete biological chain from cow to child.

The puzzle dates back to 1989, when scientists first proposed the "hygiene hypothesis" after noticing a dramatic rise in allergies among children in wealthy countries over the previous three decades. The idea was simple: children's immune systems need to encounter germs and microbes to learn how not to overreact. Without that training, the immune system sometimes attacks the body's own tissues, causing allergies, asthma, and hay fever.

"Girls and boys who grow up on farms and are exposed to a wider variety of microbes have the problem far less often," said Professor Markus Ege, who led the research. He explained that farm children's immune systems constantly face bacterial "sparring partners" from barn air, which trains them to avoid excessive inflammatory responses.

But this had never been proven definitively. "This kind of research can only show correlations," Ege said. His team wanted to find the actual cause.

To solve the mystery, the researchers analyzed samples from more than 1,000 children participating in European studies in rural areas. They collected nasal swabs, mattress dust, and cowshed dust from 47 farm children. Using advanced genetic and computer analysis, they gradually narrowed down thousands of microorganisms to a small group of key bacteria.

"We identified a small number of bacteria, which we can now pinpoint down to the species level," said Giulia Pagani, the study's first author and a bioinformatician at Helmholtz Munich. Two stood out: Romboutsia timonensis and Glutamicibacter arilaitensis.

These two bacteria together account for two-thirds of the entire protective effect against asthma, and half of the protection against hay fever and atopic eczema. The bacteria originate in cows' digestive tracts, where they produce substances like kynurenine and alpha-linolenic acid. Children inhale these compounds along with the bacteria when they breathe barn air. Once inside the body, the substances bind to two receptors on human airway cells—called AhR and PPARγ—which help regulate the immune system and prevent it from overreacting.

For the first time, scientists can now see the full path: cow to barn air to bacteria to metabolic products to human receptors to protection against asthma.

The findings could eventually lead to new treatments that mimic the farm effect for city children who don't have access to barns. Researchers are now planning follow-up studies to explore how this knowledge might be translated into preventive therapies.