An obesogenic diet and chronic psychosocial stress induce alterations in Firmicutes linked to changes in microglia morphology and brain microstructure. (A) Microbiome evaluation revealed that the WD (p = 0.0033), PSS (p = 0.021), and interaction of WD and PSS (p = 0.0052) significantly contributed to the relative abundance of Coprococcus in the gut. Multiple comparisons analysis revealed that, relative to controls, there was a significant reduction in Coprococcus abundance due to the WD (p = 0.0005), PSS (p = 0.0048), and the combined effect of WD and PSS (p = 0.0019). (B) The WD significantly reduced the abundance of Ruminococcus (p = 0.035). (C) The WD increased (p = 0.012), while PSS decreased (p = 0.015), the relative abundance of Lachnospiraceae NK4A136. Sample numbers: CD UNEXP, n = 9; CD EXP, n = 11; WD UNEXP, n = 8, WD EXP; n = 10. Spearman's rank correlation analysis showed significant associations between Lachnospiraceae NK4A136 abundance and lacunarity (D), fractional anisotropy (E), and intracellular volume fraction (F)—correlation sample size = 12 rats. Detailed information on microbiota analyses, correlations, false discoveries, and other related statistics can be found in the Supplementary Materials.