A suboptimal early nutritional environment ( excess of energy, sugar, and fat intake) can increase susceptibility to diseases and neurocognitive disorders. The purpose of this study was to investigate in nonobese Yucatan minipigs () the impact of maternal diet [standard diet (SD) Western diet (WD)] during gestation and 25 d of lactation on milk composition, blood metabolism, and microbiota activity of sows ( 17) and their piglets ( 65), and on spatial cognition ( 51), hippocampal plasticity ( 17), and food preferences/motivation ( 51) in the progeny. Milk dry matter and lipid content, as well as plasma total cholesterol and free fatty acid (FFA) concentrations ( < 0.05) were higher in WD than in SD sows. Microbiota activity decreased in both WD sows and 100-d-old piglets ( < 0.05 or < 0.10, depending on short-chain FAs [SCFAs]). At weaning [postnatal day (PND) 25], WD piglets had increased blood triglyceride and FFA levels ( < 0.01). Both SD and WD piglets consumed more of a known SD than an unknown high-fat and -sucrose (HFS) diet ( < 0.0001), but were quicker to obtain HFS rewards compared with SD rewards ( < 0.01). WD piglets had higher working memory ( = 0.015) and reference memory ( < 0.001) scores, which may reflect better cognitive abilities in the task context and a higher motivation for the food rewards. WD piglets had a smaller hippocampal granular cell layer ( = 0.03) and decreased neurogenesis ( < 0.005), but increased cell proliferation ( < 0.001). A maternal WD during gestation and lactation, even in the absence of obesity, has significant consequences for piglets' blood lipid levels, microbiota activity, gut-brain axis, and neurocognitive abilities after weaning.-Val-Laillet, D., Besson, M., Guérin, S., Coquery, N., Randuineau, G., Kanzari, A., Quesnel, H., Bonhomme, N., Bolhuis, J. E., Kemp, B., Blat, S., Le Huërou-Luron, I., Clouard, C. A maternal Western diet during gestation and lactation modifies offspring's microbiota activity, blood lipid levels, cognitive responses, and hippocampal neurogenesis in Yucatan pigs.