This study demonstrates that prenatal valproic acid (VPA) exposure induces gut microbiota dysbiosis (Bacteroidia↓), exacerbating neuroinflammation (↑IL-1β/IL-6/TNF-α) and cognitive deficits in offspring via the microbiota-gut-brain axis. This evidence concerns the gene IL6 and Cognitive impairment.