We found that Hb had a protective effect on depression in patients with CVD [AUC = 0.713, 95% CI (0.580, 0.846), p = 0.012]; the cutoff was 122.00 g/L, with a specificity of 43.86% and sensitivity of 93.33%. The gene discussed is GSTM1; the disease is depressive symptom measurement.