These results indicated that MTHFD2 affected the prognosis of EC patients partly via immune infiltration, and targeting MTHFD2 might play an important role in tumor immune escape and the processes of EC. The gene discussed is MTHFD2; the disease is neoplasm.