This study revealed the role of abnormal expression of MSH2 in the occurrence and development of pan-cancer through comprehensive by bioinformatics methods and indicated that MSH2 expression may mediate immune infiltration and affect the prognosis of pan-cancer patients. This evidence concerns the gene MSH2 and cancer.