Kidney renal papillary cell carcinoma (KIRP) is a common urinary tumor that causes lymph node invasion. Once metastatic, the prognosis is poor and there is a lack of effective early diagnostic markers for this tumor. The expression of CCNB1 in KIRP tumor tissues was significantly higher than that in normal tissues in The Cancer Genome Atlas database with or without the genotype-tissue expression database, and a consistent result was obtained in 32 paired tissues. In addition, CCNB1 expression increased remarkably with the progression of the T and M stages. Moreover, using the online HPA database, we verified that the immunohistochemical scores of CCNB1 in KIRP were higher than those in the normal kidney tissues. The higher expression group of CCNB1 showed a worse prognosis in KIRP. Moreover, the receiver operating characteristic curve, univariate and multivariate analyses, and construction of the column diagram further illustrated that CCNB1 was an independent prognostic factor for KIRP. Meanwhile, CCNB1 could better predict the 1- and 3-year survival rates of KIRP. Six genes were significantly and positively co-expressed with CCNB1. We also found that the CCNB1 high-expression group was enriched in the ECM_RECEPTOR_INTERACTION and FOCAL_ADHESION pathways. Finally, drug sensitivity analysis combined with molecular docking identified 5 targeting drugs with the strongest binding activity to CCNB1. CCNB1 is a potential and reliable biomarker for KIRP diagnosis and can be used to predict the survival of patients with KIRP. The 5 selected drugs targeting CCNB1 may provide new hopes for patients with KIRP metastasis.