Background: 'Western" style dietary patterns are characterized by a high proportion of highly processed foods rich in fat and low in fiber. This diet pattern is associated with a myriad of metabolic dysfunctions, including neuroinflammation and cognitive impairment beta-glucan, the major soluble fiber in oat and barley grains, is fermented in the lower gastrointestinal tract, potentially impacting the microbial ecosystem and thus may improve elements of cognition and brain function via the gut-brain axis. The present study aimed to evaluate the effect of beta-glucan on the microbiota gut-brain axis and cognitive function in an obese mouse model induced by a high-fat and fiber-deficient diet (HFFD). Results: After long-term supplementation for 15 weeks, beta-glucan prevented HFFD-induced cognitive impairment assessed behaviorally by object location, novel object recognition, and nesting building tests. In the hippocampus, pg I ucan countered the HFFD-induced microglia activation and its engulfment of synaptic puncta, and upregulation of proinflammatory cytokine (TNF-alpha, IL-1 beta, and IL-6) mRNA expression. Also, in the hippocampus, beta-glucan significantly promoted PIM B-IRS-pAKT-pGSK3 beta-pTau signaling for synaptogenesis, improved the synaptic ultrastructure examined by transmission electron microscopy, and increased both pre- and pmtvnaptic protein levels compared to the HFFD-treated group. In the colon, beta-glucan reversed HFFD-induced gut barrier dysfunction increased the thickness of colonic mucus (Alcian blue and mucin-2 glycoprotein immunofluorescence staining), increased the levels of tight junction proteins occludin and zonula occludens-1, and attenuated bacterial endotoxin translocation. The HFFD resulted in microbiota alteration, effects abrogated by long-term beta-glucan supplementation, with the beta-glucan effects on Bacteroidetes and its lower taxa particularly striking. Importantly, the study of short-term beta-glucan supplementation for 7 days demonstrated pronounced, rapid differentiating microbiota changes before the cognitive improvement, suggesting the possible causality of gut microbiota profile on cognition. In support, broad-spectrum antibiotic intervention abrogated beta-glucan's effects on improving cognition, highlighting the role of gut microbiota to mediate cognitive behavior. Conclusion: This study provides the first evidence that beta-glucan improves indices of cognition and brain function with major beneficial effects all along the gut microbiota-brain axis. Our data suggest that elevating consumption of beta-glucan rich foods is an easily implementable nutritional strategy to alleviate detrimental features of gut-brain dysregulation and prevent neurodegenerative diseases associated with Westernized dietary patterns.