IMPORTANCE Previous research has linked a history of depression with arterial stiffness (AS) during midlife. OBJECTIVE To assess the association of depression with elevated midlife AS and to investigate the extent to which this association is mediated via metabolic syndrome (MetS). DESIGN, SETTINGS, AND PARTICIPANTS This population-based retrospective cohort study analyzed data collected between March 2006 and December 2010 from 124 445 participants aged 40 to 69 years from the UK Biobank. Participants without data on AS at baseline (n = 332 780) or who reported a previous diagnosis of cardiovascular disease (n = 45 374) were not eligible. Data analysis was performed from May to August 2019. EXPOSURES Lifetime history of depression was assessed via verbal interview and linked hospital-based clinical depression diagnosis. Metabolic syndrome was defined as the presence of 3 or more of hypertension, dyslipidemia, hyperglycemia, hypertriglyceridemia, and unhealthy waist circumference. MAIN OUTCOMES AND MEASURES Peripherally assessed AS index (ASI) using digital photoplethysmography. RESULTS Of 124 445 included participants with ASI assessed, 71 799 (57.7%) were women, and the mean (SD) age was 56 (8) years. A total of 10 304 participants (8.3%) reported a history of depression. Study findings indicated a significant direct association between depression and ASI levels (β = 0.25; 95% CI, 0.17-0.32). A significant indirect association was also observed between depression and ASI levels (β = 0.10; 95% CI, 0.07-0.13), indicating that 29% of the association of depression with ASI was mediated by MetS. The proportion of mediation increased to 37% when C-reactive protein was added to the MetS criteria (direct association: β = 0.21; 95% CI, 0.15-0.28; indirect association: β = 0.13; 95% CI, 0.10-0.17). Concerning components of MetS, the strongest indirect association was for waist circumference, accounting for 25% of the association between depression and ASI levels (direct association: β = 0.26; 95% CI, 0.18-0.34; indirect association: β = 0.09; 95% CI, 0.06-0.11). Among men, hypertriglyceridemia accounted for 19% of the association between depression and ASI (direct association: β = 0.22; 95% CI, 0.05-0.40; indirect association: β = 0.05; 95% CI, 0.02-0.08). CONCLUSIONS AND RELEVANCE One-third of the association of depression with elevated ASI levels during midlife may be accounted for by combined MetS and inflammatory processes. Unhealthy waist circumference and hypertriglyceridemia emerged as the most important potential targets for preventive interventions within women and men, respectively.