In our study, we first demonstrated that patients with a high CS Ratio in cervical cancer exhibit better prognoses, positively correlating with CD8+ T cells and M1 macrophages, with a correspondingly lower proportion of M2 macrophages. The gene discussed is CD8A; the disease is cervical cancer.