Abstract Background SETD2 protects against genomic instability via maintenance of homologous recombination repair (HRR) and mismatch repair (MMR) in neoplastic cells. However, it remains unclear whether SETD2 dysfunction is a complementary or independent factor to microsatellite instability-high (MSI-H) and tumor mutational burden-high (TMB-H) for immunocheckpoint inhibitor (ICI) treatment, and little is known regarding whether this type of dysfunction acts differently in various types of cancer. Methods This cohort study used multidimensional genomic data of 6726 sequencing samples from our cooperative and non-public GenePlus institute from April 1 through April 10, 2020. MSIsensor score, HRD score, RNAseq, mutational data, and corresponding clinical data were obtained from the TCGA and MSKCC cohort for seven solid tumor types. Results A total of 1021 genes underwent target panel sequencing reveal that SETD2 mutations were associated with a higher TMB. SETD2 deleterious mutation dysfunction affected ICI treatment prognosis independently of TMB-H (p < 0.01) and had a lower death hazard than TMB-H in pancancer patients (0.511 vs 0.757). Significantly higher MSI and lower homologous recombination deficiency were observed in the SETD2 deleterious mutation group. Improved survival rate was found in the MSKCC-IO cohort (P < 0.0001) and was further confirmed in our Chinese cohort. Conclusion We found that SETD2 dysfunction affects ICI treatment prognosis independently of TMB-H and has a lower death hazard than TMB-H in pancancer patients. Therefore, SETD2 has the potential to serve as a candidate biomarker for ICI treatment. Additionally, SETD2 should be considered when dMMR is detected by immunohistochemistry.