BackgroundDiabetes is associated with the incidence and prognosis of various malignancies, most notably endometrial cancer (EC). This study investigated the connection between diabetes and EC, with a specific focus on elucidating the biological implications of the diabetes mellitus (DM)-related gene WFS1.MethodsUsing the CTD, GeneCards, and GSEA databases, we identified WFS1 as a diabetes-related gene and then conducted an extensive investigation focusing on WFS1 in the context of EC. First, we identified WFS1 as the target gene and obtained EC data from the TCGA database. Then, comprehensive analyses and verification experiments, including differential expression analysis, prognostic modeling, functional enrichment analysis, gene mutation profiling, assessment of immune cell infiltration, immunophenoscore (IPS), tumor stemness index scoring, drug sensitivity analysis, single-cell transcriptomic analysis, glycolytic pathway analysis, and clinical verification, were performed to comprehensively evaluate the clinical value of WFS1 in EC.ResultsThe EC group had significantly lower WFS1 expression, with an AUC of 0.857 for the ROC diagnostic curve. Overall survival analysis revealed that WFS1 was an independent risk factor for EC; low WFS1 expression was correlated with a poor prognosis. Stemness index analysis revealed that decreased WFS1 expression was associated with increased tumor grade and enhanced tumor stemness, suggesting increased malignancy of EC. In addition, WFS1 expression was correlated with tumor microenvironment features such as immune cell infiltration. WFS1 was also associated with tumor drug resistance.ConclusionEC patients with low WFS1 expression have a worse prognosis. WFS1 can be used as diagnostic and prognostic marker for EC.