In this study, we focused on exploring the heterogeneity of the tumor microenvironments from patients with ccRCC, identified two immune subtypes of ccRCC, and identified five immune genes (AQP9, KIAA1429, HAMP, CCL13, and CCL21) from the high and low subgroups that were used to construct a risk model. This evidence concerns the gene HAMP and nonpapillary renal cell carcinoma.