Three key genes were identified from 119 DGEs of ICI score, and cell experiments confirmed that Key genes had an impact on the proliferation and migration ability of cervical cancer cells, moreover, single-cell sequencing data suggested that CST7 and IL1B were mainly distributed in immune cells, which suggested the potential important role of CST7 and IL1B in the immune microenvironment of cervical cancer. This evidence concerns the gene CST7 and cervical cancer.