Antitumor immune responses were significantly correlated with PD-L2 expression in the TME in renal cell carcinoma and lung squamous cell carcinoma. This evidence concerns the gene PDCD1LG2 and hereditary clear cell renal cell carcinoma.