Biomarkers of lipid, apolipoprotein, and carbohydrate metabolism have been previously suggested to be associated with the risk for depression, anxiety, and stress-related disorders, but results are inconsistent. To examine whether the biomarkers of carbohydrate, lipid, and apolipoprotein metabolism are associated with the risk of depression, anxiety, and stress-related disorders. This population-based cohort study with longitudinal data collection assessed 211 200 participants from the Apolipoprotein-Related Mortality Risk (AMORIS) cohort who underwent occupational health screening between January 1, 1985, and December 31, 1996, mainly in the Stockholm region in Sweden. Statistical analysis was performed during 2022 to 2023. Lipid, apolipoprotein, and carbohydrate biomarkers measured in blood. The associations between biomarker levels and the risk of developing depression, anxiety, and stress-related disorders through the end of 2020 were examined using Cox proportional hazards regression models. In addition, nested case-control analyses were conducted within the cohort, including all incident cases of depression, anxiety, and stress-related disorders, and up to 10 control individuals per case who were individually matched to the case by year of birth, sex, and year of enrollment to the AMORIS cohort, using incidence density sampling. Population trajectories were used to illustrate the temporal trends in biomarker levels for cases and controls. A total of 211 200 individuals (mean [SD] age at first biomarker measurement, 42.1 [12.6] years; 122 535 [58.0%] male; 188 895 [89.4%] born in Sweden) participated in the study. During a mean (SD) follow-up of 21.0 (6.7) years, a total of 16 256 individuals were diagnosed with depression, anxiety, or stress-related disorders. High levels of glucose (hazard ratio [HR], 1.30; 95% CI, 1.20-1.41) and triglycerides (HR, 1.15; 95% CI, 1.10-1.20) were associated with an increased subsequent risk of all tested psychiatric disorders, whereas high levels of high-density lipoprotein (HR, 0.88; 95% CI, 0.80-0.97) were associated with a reduced risk. These results were similar for male and female participants as well as for all tested disorders. The nested case-control analyses demonstrated that patients with depression, anxiety, or stress-related disorders had higher levels of glucose, triglycerides, and total cholesterol during the 20 years preceding diagnosis, as well as higher levels of apolipoprotein A-I and apolipoprotein B during the 10 years preceding diagnosis, compared with control participants. In this cohort study of more than 200 000 participants, high levels of glucose and triglycerides and low levels of high-density lipoprotein were associated with future risk of depression, anxiety, and stress-related disorders. These findings may support closer follow-up of individuals with metabolic dysregulations for the prevention and diagnosis of psychiatric disorders.