Immunotherapy (IO) plus tyrosine kinase inhibitor (TKI) has become the first-line treatment for advanced renal cell carcinoma, despite the lack of prognostic biomarkers. Cyclin-dependent kinase 5 (CDK5) affects the tumor microenvironment, which may influence the efficacy of TKI+IO. Two cohorts from our center (Zhongshan Metastatic Renal Cell Carcinoma [ZS-MRCC] cohort, Zhongshan High-risk Localized Renal Cell Carcinoma [ZS-HRRCC] cohort) and one cohort from a clinical trial (JAVELIN-101) were enrolled. The expression of CDK5 of each sample was determined by RNA sequencing. Immune infiltration and T cell function were evaluated by flow cytometry and immunohistochemistry. Response and progression-free survival (PFS) were set as primary endpoints. Patients of low CDK5 expression showed higher objective response rate (60.0% vs. 23.3%) and longer PFS in both cohorts (ZS-MRCC cohort, p=0.014; JAVELIN-101 cohort, p=0.040). CDK5 expression was enhanced in non-responders (p < 0.05). In the ZS-HRRCC cohort, CDK5 was associated with decreased tumor-infiltrating CD8+ T cells, which was proved by immunohistochemistry (p < 0.05) and flow cytometry (Spearman's ρ=-0.49, p < 0.001). In the high CDK5 subgroup, CD8+ T cells revealed a dysfunction phenotype with decreased granzyme B, and more regulatory T cells were identified. A predictive score was further constructed by random forest, involving CDK5 and T cell exhaustion features. The RFscore was also validated in both cohorts. By utilizing the model, more patients might be distinguished from the overall cohort. Additionally, only in the low RFscore did TKI+IO outperform TKI monotherapy. High-CDK5 expression was associated with immunosuppression and TKI+IO resistance. RFscore based on CDK5 may be utilized as a biomarker to determine the optimal treatment strategy.