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. Here, WFS1 is linked to neoplasm.