NEK2 is a member of the NEKs family and plays an important role in cell mitosis. Increasing evidence suggests that NEK2 is associated with the development of multiple tumors, but systematic studies of NEK2 in cancer are still lacking. Therefore, we evaluated the prognostic value of NEK2 in 33 cancers to elucidate the potential function of NEK2 in pan-cancers. We investigated the role of NEK2 in pan-cancers utilizing The Cancer Genome Atlas (TCGA) and the Genotype-Tissue Expression (GTEx) database. Additionally, we analyzed the association between NEK2 gene expression across various cancers, protein expression, the tumor microenvironment (TME), and drug sensitivity using several software and web platforms.The potential oncogenic role of NEK2 was initially explored using bioinformatics methods. Furthermore, we conducted in vitro experiments to preliminarily validate the function of NEK2 in cervical cancer. NEK2 is overexpressed in almost all tumors, and mutation of NEK2 are associated with a poorer tumor prognosis. In addition, the correlation between NEK2 and immune features such as immune cell infiltration, immune checkpoint genes, tumor mutational burden (TMB), Microsatellite instability(MSI) etc. suggest that NEK2 could potentially be applied in the immunotherapy of tumors. NEK2 may be a potential pan-cancer biomarker and immunotherapeutic target for improving the efficacy of tumor therapy.