Maternal suboptimal nutrition and high stress levels are associated with adverse fetal and infant neurodevelopment. This study aimed to investigate if structured lifestyle interventions involving a Mediterranean diet or mindfulness-based stress reduction during pregnancy are associated with differences in fetal and neonatal brain development. This was a secondary analysis of the randomized clinical trial Improving Mothers for a Better Prenatal Care Trial Barcelona that was conducted in Barcelona, Spain, from 2017 to 2020. Participants with singleton pregnancies were randomly allocated into 3 groups, namely Mediterranean diet intervention, stress reductionprogram, or usual care. Participants in the Mediterranean diet group received monthly individual sessions and free provision of extra-virgin olive oil and walnuts. Pregnant women in the stress reduction group underwent an 8-week mindfulness-based stress reduction program adapted for pregnancy. Magnetic resonance imaging of 90 fetal brains was performed at 36 to 39 weeks of gestation and the Neonatal Neurobehavioral Assessment Scale was completed for 692 newborns at 1 to 3 months. Fetal outcomes were the total brain volume and lobular or regional volumes obtained from a 3-dimensional reconstruction and semiautomatic segmentation of magnetic resonance images. Neonatal outcomes were the 6 clusters scores of the Neonatal Neurobehavioral Assessment Scale. Multiple regression analyses were conducted to assess the association between the interventions and the fetal and neonatal outcomes. When compared with the usual care group, the offspring exposed to a maternal Mediterranean diet had a larger total fetal brain volume (mean, 284.11 cm3; standard deviation, 23.92 cm3 vs 294.01 cm3; standard deviation, 26.29 cm3; P=.04), corpus callosum (mean, 1.16 cm3; standard deviation, 0.19 cm3 vs 1.26 cm3; standard deviation, 0.22 cm3; P=.03), and right frontal lobe (44.20; standard deviation, 4.09 cm3 vs 46.60; standard deviation, 4.69 cm3; P=.02) volumes based on magnetic resonance imaging measures and higher scores in the Neonatal Neurobehavioral Assessment Scale clusters of autonomic stability (mean, 7.4; standard deviation, 0.9 vs 7.6; standard deviation, 0.7; P=.04), social interaction (mean, 7.5; standard deviation, 1.5 vs 7.8; standard deviation, 1.3; P=.03), and range of state (mean, 4.3; standard deviation, 1.3 vs 4.5; standard deviation, 1.0; P=.04). When compared with the usual care group, offspring from the stress reduction group had larger fetal left anterior cingulate gyri volume (1.63; standard deviation, 0.32 m3 vs 1.79; standard deviation, 0.30 cm3; P=.03) based on magnetic resonance imaging and higher scores in the Neonatal Neurobehavioral Assessment Scale for regulation of state (mean, 6.0; standard deviation, 1.8 vs 6.5; standard deviation, 1.5; P<.01). Maternal structured lifestyle interventions involving the promotion of a Mediterranean diet or stress reduction during pregnancy were associated with changes in fetal and neonatal brain development.