Objectives Accurate survival predictions and early interventional therapy are crucial for people with clear cell renal cell carcinoma (ccRCC). Methods In this retrospective study, we identified differentially expressed immune-related (DE-IRGs) and oncogenic (DE-OGs) genes from The Cancer Genome Atlas (TCGA) dataset to construct a prognostic risk model using univariate Cox regression and least absolute shrinkage and selection operator (LASSO) analysis. We compared the immunogenomic characterization between the high- and low-risk patients in the TCGA and the PUCH cohort, including the immune cell infiltration level, immune score, immune checkpoint, and T-effector cell- and interferon (IFN)-γ-related gene expression. Results A prognostic risk model was constructed based on 9 DE-IRGs and 3 DE-OGs and validated in the training and testing TCGA datasets. The high-risk group exhibited significantly poor overall survival compared with the low-risk group in the training ( P < 0.0001), testing ( P = 0.016), and total ( P < 0.0001) datasets. The prognostic risk model provided accurate predictive value for ccRCC prognosis in all datasets. Decision curve analysis revealed that the nomogram showed the best net benefit for the 1-, 3-, and 5-year risk predictions. Immunogenomic analyses of the TCGA and PUCH cohorts showed higher immune cell infiltration levels, immune scores, immune checkpoint, and T-effector cell- and IFN-γ-related cytotoxic gene expression in the high-risk group than in the low-risk group. Conclusion The 12-gene prognostic risk model can reliably predict overall survival outcomes and is strongly associated with the tumor immune microenvironment of ccRCC.