Maternal immune activation (MIA) and poor maternal nutritional habits are risk factors for the occurrence of neurodevelopmental disorders (NDD). Human studies show the deleterious impact of prenatal inflammation and low n-3 polyunsaturated fatty acid (PUFA) intake on neurodevelopment with long-lasting consequences on behavior. However, the mechanisms linking maternal nutritional status to MIA are still unclear, despite their relevance to the etiology of NDD. We demonstrate here that low maternal n-3 PUFA intake worsens MIA-induced early gut dysfunction, including modification of gut microbiota composition and higher local inflammatory reactivity. These deficits correlate with alterations of microglia-neuron crosstalk pathways and have long-lasting effects, both at transcriptional and behavioral levels. This work highlights the perinatal period as a critical time window, especially regarding the role of the gut-brain axis in neurodevelopment, elucidating the link between MIA, poor nutritional habits, and NDD.