In our study, we found that the expression of the diabetes-associated gene WFS1 was downregulated in EC, affecting various components of the tumor microenvironment and leading to a poorer prognosis for patients. The gene discussed is WFS1; the disease is diabetes mellitus.