Through a series of bioinformatics analyses based on the publicly accessible database, we explored the mRNA expression of TRPM2 in pan-cancer and corresponding normal tissues, and the correlation between TRPM2 expression and survival prognosis and immune microenvironment. This evidence concerns the gene TRPM2 and cancer.