ImportanceCardiovascular health may be used for prevention of depressive symptoms. However, data on the association of cardiovascular health across midlife with depressive symptoms are lacking.ObjectiveTo evaluate whether better baseline cardiovascular health and improvement of cardiovascular health over time are associated with a lower risk of both incident depressive symptoms and unfavorable trajectories of depressive symptoms.Design, Setting, and ParticipantsParticipants without depressive symptoms were included from a prospective community-based cohort in France (GAZEL cohort). Cardiovascular health examinations occurred in 1990 and 1997 and assessment of depressive symptoms in 1997 and every 3 years thereafter until 2015. Data were analyzed from January to October 2022.ExposuresNumber of cardiovascular health metrics (smoking, body mass index, physical activity, diet, blood pressure, glucose, and cholesterol) at an intermediate or ideal level in 1997 (range, 0-7) and 7-year change in cardiovascular health between 1990 and 1997.Main Outcomes and MeasuresPrimary outcome was incident depressive symptoms (20-item Center for Epidemiologic Studies–Depression Scale [CES-D] score of 17 or greater in men or 23 or greater in women); secondary outcome was trajectories of depressive symptoms scores. Trajectories included consistently low scores, moderately elevated scores, low starting then increasing scores, moderately high starting, increasing, then remitting scores, and moderately high starting then increasing scores.ResultsOf 6980 included patients, 1671 (23.9%) were women, and the mean (SD) age was 53.3 (3.5) years. During a follow-up spanning 19 years after 1997, 1858 individuals (26.5%) had incident depressive symptoms. Higher baseline cardiovascular health in 1997 and improvement in cardiovascular health over 7 years were each associated with lower risk of depressive symptoms (odds ratio [OR] per additional metric at intermediate or ideal level at baseline, 0.87; 95% CI, 0.84-0.91; OR per 1 higher metric at intermediate or ideal level over 7 years, 0.91; 95% CI, 0.86-0.96). Also, better cardiovascular health was associated with lower risk of unfavorable depressive symptoms trajectories. Compared with the consistently low score trajectory, the lowest risks were observed for the low starting then increasing score trajectory (OR per additional metric at intermediate or ideal level at baseline, 0.70; 95% CI, 0.64-0.76; OR per 1 higher metric at intermediate or ideal level over 7 years, 0.73; 95% CI, 0.68-0.79) and the moderately high starting then increasing score trajectory (OR per additional metric at intermediate or ideal level at baseline, 0.71; 95% CI, 0.64-0.79; OR per 1 higher metric at intermediate or ideal level over 7 years, 0.71; 95% CI, 0.64-0.77).Conclusions and RelevanceIn this prospective community-based cohort study of adults, higher cardiovascular health was associated with a lower risk of depressive symptoms over time. Elucidating which set of cardiovascular factors may affect depression risk could be important for prevention.