BackgroundShort stature homeobox 2 (SHOX2) is significant gene in the development and progression of multiple types of tumors. Nonetheless, the biological role of SHOX2 within pan-cancer datasets has not been investigated. Thus, comprehensive bioinformatics analyses of pan-cancer datasets were conducted to explore how SHOX2 regulates tumorigenesis.MethodsA variety of tumor datasets and online analytical tools, including SangerBox, TIMER2, LinkedOmic, GEPIA2 and cBioPortal, were applied to explore SHOX2 expression in various tumors. To ascertain the connections between SHOX2 expression and genetic alterations, SHOX2-related genes and tumor immunity, the pan-cancer datasets were examined. In vitro assays were applied to verify the biological functions of SHOX2 in glioma cells via CCK-8, wound healing, Transwell and colony formation assays.ResultsAnalyses found that SHOX2 was overexpressed in multiple cancer types. SHOX2 expression level was significantly correlated with isocitrate dehydrogenase (IDH), 1p/19q, O6-methylguanine DNA methyltransferase (MGMT) status and new types of glioma patients. High mRNA expression levels of SHOX2 were associated with a poor prognosis in multiple tumor patients. KEGG enrichment analysis showed that SHOX2-related genes were associated with cell cycle and DNA damage repair. Genetic alterations of SHOX2 were identified in multiple types of cancers, including duplications and deep mutations. Immune analysis showed that SHOX2 was closely correlated with the tumor mutation burden (TMB), microsatellite instability (MSI), neoantigen and neoantigens and immune checkpoint (ICP) in a variety of tumors and could influence the immunotherapy sensitivity of cancers. CCK-8, wound healing, Transwell and colony formation experiments showed that SHOX2 knockdown inhibited glioma cell proliferation, migration, invasion and colony formation abilities.ConclusionSHOX2 was overexpressed in multiple cancer types in TCGA cohort. SHOX2 knockdown inhibited glioma cell proliferation, migration and colony formation ability. Our study showed that SHOX2 may be an immunotherapeutic and promising prognostic biomarker in certain types of tumors.Supplementary InformationThe online version contains supplementary material available at 10.1186/s41065-023-00279-8.