BackgroundThe prevalence of food allergy (FA) is increasing. Decreases in the diversity of gut microbiota may contribute to the pathogenesis of FA by regulating IgE production of B cells. Intermittent fasting (IF) is a popular diet with the potential to regulate glucose metabolism, boosting immune memory and optimizing gut microbiota. The potential effect of long-term IF on the prevention and treatment of FA is still unknown.MethodsTwo IF protocols (16 h fasting/8 h feeding and 24 h fasting/24 h feeding) were conducted on mice for 56 days, while the control mice were free to intake food (free diet group, FrD). To construct the FA model, all mice were sensitized and intragastrical challenged with ovalbumin (OVA) during the second half of IF (day 28 to day 56). Rectal temperature reduction and diarrhea were recorded to evaluate the symptoms of FA. Levels of serum IgE, IgG1, Th1/Th2 cytokines, mRNA expression of spleen T cell related transcriptional factors, and cytokines were examined. H&E, immunofluorescence, and toluidine blue staining were used to assess the structural changes of ileum villi. The composition and abundance of gut microbiota were analyzed by 16srRNA sequencing in cecum feces.ResultsThe diarrhea score and rectal temperature reduction were lower in the two fasting groups compared to the FrD groups. Fasting was associated with lower levels of serum OVA-sIgE, OVA-sIgG1, interleukin (IL)-4 and IL-5, and mRNA expression of IL-4, IL-5, and IL-10 in the spleen. While no significant association was observed in interferon (IFN)-γ, tumor necrosis factor (TNF)-α, IL-6, IL-2 levels. Less mast cell infiltration in ileum was observed in the 16h/8h fasting group compared to the FrD group. ZO-1 expression in the ileum of the two fasting groups was higher in IF mice. The 24h/24h fasting reshaped the gut microbiota, with a higher abundance ofAlistipesandRikenellaceaestrains compared to the other groups.ConclusionIn an OVA-induced mice FA model, long-term IF may attenuate FA by reducing Th2 inflammation, maintaining the integrity of the intestinal epithelial barrier, and preventing gut dysbiosis.