The infiltration of immune cells can significantly affect the prognosis and immune therapy of patients with cervical squamous cell carcinoma (CSCC). This study aimed to explore key immune cell-related genes in the tumorigenesis and prognosis of CSCC. The module significantly related to immunity was screened by weighted gene co-expression network analysis (WGCNA) and ESTIMATE analysis, followed by correlation analysis with clinical traits. Key candidate genes were intersected with the protein-protein interaction (PPI) network genes for immune-related genes. The relationship between immune cell infiltration and key genes was analyzed. Tumor immune dysfunction and exclusion (TIDE) and immunophenoscore (IPS) predicted the response to immunotherapy in CSCC patients. Clinically, quantitative real-time polymerase chain reaction (qRT-PCR) and immunohistochemistry were manipulated for analyzing the changes in mRNA and protein expression of key genes in cancer. Western blot was conducted to assess the correlation between key genes and immune infiltration. The brown module was notably associated with the immune microenvironment of CSCC, from which three immune-related key genes (