<b><i>Introduction:</i></b> <i>SMG5</i> is involved in tumor cell development and viewed as a potential target for immunotherapy. The purpose of this study was to systematically analyze the expression level, function, and prognostic value of <i>SMG5</i> in pan-cancers. <b><i>Methods:</i></b> Differential expression of <i>SMG5</i> in normal and tumor tissues was analyzed using The Cancer Genome Atlas (TCGA) and the Genotype-Tissue Expression Database (GTEx) data. Survival analysis was performed by Kaplan-Meier method and Cox risk regression. The relationship between <i>SMG5</i> expression and lymphocyte abundance, tumor cell immune infiltration level, molecular and immune subtypes as well as immune checkpoints was analyzed by tumor-immune system interactions database (TISIDB), Tumor Immune Estimation Resource (TIMER), and Sangerbox databases. The correlation between <i>SMG5</i> and immune scores was studied using the Estimation of Stromal and Immune Cells in Malignant Tumours using Expression (ESTIMATE) data algorithm. Further, drug sensitivity analysis of <i>SMG5</i> with low-grade glioma (LGG) was conducted using the CellMiner database. <b><i>Results:</i></b> <i>SMG5</i> was highly expressed in 23 tumors and only had a significant impact on the prognosis of patients with LGG only. In addition, in tumor microenvironment and tumor immune analysis, we found that the level of immune infiltration, tumor mutational load, microsatellite instability, and immune checkpoints of LGG were significantly correlated with <i>SMG5</i> expression. Furthermore, <i>SMG5</i> was significantly associated with immune scores, stromal scores, and sensitivity of some drugs in LGG. <b><i>Conclusion:</i></b> <i>SMG5</i> is differentially expressed in several cancers and is significantly associated with prognosis, immune microenvironment, and immune checkpoints in LGG patients. Therefore, <i>SMG5</i> could be a potential pan-cancer biomarker and an immunotherapeutic target for LGG.