To explore the expression and prognostic value of UHRF1 gene in soft tissue sarcoma (STS) and its related molecular mechanism. The expression data and clinicopathological parameters of STS were downloaded from the Cancer Genome Atlas (TCGA). The expression level of UHRF1 in STS and adjacent tissues and its relationship with clinicopathological characteristics were analyzed. The expression level of UHRF1 in STS tissues was significantly higher than that in paracancerous tissues (P < .001), and the overall survival (OS) time of patients with high UHRF1 expression was significantly shorter than that of patients with low UHRF1 expression (P = .002). The expression of UHRF1 was correlated with tumor necrosis, histological type and metastasis, and the differences were statistically significant (P = .013; P = .001; P = .002). The area ratio under receiver operating characteristic (ROC) curve between STS tissue and adjacent tissue of UHRF1 expression was 0.994. Number of tumors (HR = 0.416, 95%CI = 0.260–0.666, P < .001), depth of tumor (HR = 2.888, 95%CI = 0.910–9.168, P = .033), metastasis (HR = 2.888, 95% CI = 1.762–4.732, P < .001), residual tumor (HR = 2.637, 95% CI = 1.721–4.038, P < .001) and UHRF1 expression (HR = 1.342, 95% CI = 1.105–1.630, P = .003) were significantly associated with OS, and high expression of UHRF1 (HR = 1.387, 95%CI = 1.008–1.907, P = .044) was an independent risk factor for the prognosis of STS patients. The results of the nomogram exhibited that UHRF1 expression level had a significant effect on the total score value. GSEA enrichment analysis suggested that UHRF1 was involved in 14 signaling pathways regulating mRNA spliceosome, cell cycle, P53 signaling pathway were identified. Single sample gene set enrichment analysis (ssGSEA) exhibited that the expression of UHRF1 in STS was positively correlated with the level of Th2 cell infiltration, and negatively correlated with plasmacytoid dendritic cells (pDC), natural killer cells (NK), Eosinophils, Mast cells, etc. UHRF1 expression is involved in the immune microenvironment of HCC and affects the occurrence and development of HCC. UHRF1 is highly expressed in STS tissues. It is involved in the regulation of multiple tumor-related signaling pathways and immune cell microenvironment, suggesting that UHRF1 may be a potential molecular marker for prognosis prediction and targeted therapy of STS patients.