In conclusion, there are close relationships between major depression and elevated SII, poor sleep quality and increased cell-mediated immunity, especially CD3+ T cells, CD3+CD8+ T cells and the CD4+/CD8+ ratio in patients with CHD and depression, possibly leading to elevated SII, poor subjective sleep quality and abnormal T-cell levels in CHD. Here, CD8A is linked to depressive symptom measurement.