Cyclin-dependent kinase 1 (CDK1) regulates the cell cycle and is highly expressed in most tumors. CDK1 expression has been associated with poor disease prognosis. This study aimed to identify the prognostic value of CDK1 in pan-cancer and investigate the association between CDK1 expression and immune cell infiltration. CDK1 expression and its correlation with prognosis in pan-cancer were analyzed using online databases. Immune infiltration was assessed by ESTIMATE and CIBERSORT algorithms. We then evaluated the relationship between CDK1 expression and tumor mutational burden (TMB), microsatellite instability (MSI), or tumor-infiltrating immune cells. In addition, we performed the co-expression analysis of immune-related genes and GO analysis with CDK1 expression in pan-cancer. Finally, we compared the CDK1 expression profile with the immune-related genes in 30 pairs of clinical gastrointestinal tumor samples. Our analysis demonstrated overexpression of CDK1 in most tumor tissues, especially in gastrointestinal tumors. The high expression of CDK1 was associated with poor overall survival, disease-specific survival, disease-free interval, and progression-free interval in kidney renal papillary cell carcinoma (KIRP), liver hepatocellular carcinoma (LIHC), lung adenocarcinoma (LUAD), pancreatic adenocarcinoma (PAAD), prostate adenocarcinoma (PRAD), and sarcoma (SARC). Besides, CDK1 expression was significantly associated with TMB in 22 cancer types and MSI in 8 cancer types as well as greater frequencies of MSI-high (MSI-H) status and high tumor mutational burden (TMB-H) in uterine corpus endometrial carcinoma (UCEC), stomach adenocarcinoma (STAD), sarcoma (SARC), rectum adenocarcinoma (READ), mesothelioma (MESO), head and neck squamous cell carcinoma (HNSC), and colon adenocarcinoma (COAD). In addition, CDK1 expression correlated with immune cell infiltrating levels, such as M0, M1, or M2 macrophages, memory CD4 T cells, T follicular helper cells, and naive B cells. Our data showed that CDK1 was remarkably correlated with 47 immune-related and immune checkpoint genes in many cancer types. Furthermore, CDK1 was up-regulated in gastrointestinal tumor samples, especially in gastric cancer and intestinal cancer. CDK1 was positively correlated with IDO1 in gastric cancer and PD-1 in intestinal cancer. Taken together, our data demonstrated the roles of CDK1 in oncogenesis and metastasis in pan-cancer. Thus, CDK1 is a potential prognostic biomarker and a target for tumor immunotherapy.