Background: Low cleanliness living environment (LCLE) can increase gut microbial diversity and prevent allergic diseases, whereas gut microbial dysbiosis is closely related to the pathogenesis of asthma. Our previous studies suggested that soil in the LCLE is a key factor in shaping intestinal microbiota. Objective: We aimed to explore if sterilized soil intake as prebiotics while being incubated with microbes in the air can attenuate mice asthma symptoms by modifying gut microbiota. Methods: 16S rRNA gene sequencing was used to analyze the gut microbial composition, in combination with immune parameters measured in the lung and serum samples. Results: 16S rRNA gene sequencing results showed significant differences in the fecal microbiota composition between the test and control mice, with a higher abundance of Allobaculum, Alistipes, and Lachnospiraceae_UCG-001, which produce short-chain fatty acids and are beneficial for health in the test mice. Soil intake downregulated the concentrations of IL-6, IL-4, IL-17F, TNF-alpha, and IL-22 in serum and increased the expression of IFN-gamma, which regulated the Th1/Th2 balance in lung by polarizing the immune system toward Th1, strongly alleviating ovalbumin-induced asthma inflammation. The effect of sensitization on gut microbiota was greater than that of air microbes and age together, but weaker than that of soil. Conclusion: Soil intake had a significant therapeutic effect on mouse asthma, possibly by promoting the growth of multiple beneficial bacteria. The results indicated that the development of soil-based prebiotic products might be used for allergic asthma management and our study provides further evidence for the hygiene hypothesis.