Using a large longitudinal cohort, we provide evidence that prenatal maternal depression symptoms can relate to both more unhealthy and less healthy prenatal diets, which, in turn, can prospectively associate with reduced child cognitive function. These results increase the current knowledge about mechanisms through which maternal depression can affect child development