We analyzed the role of HLA-DMB in the immune microenvironment of endometrial cancer and found that the high expression group exhibited higher immune infiltration scores and was positively correlated with various immune cells, particularly monocytes. The gene discussed is HLA-DMB; the disease is endometrial cancer.