The four characteristic genes were positively correlated with most immune-checkpoints, HLAs, receptors, and chemokines as well as significantly linked with immune cell compositions, especially macrophages, NK cells activated, and follicular helper T cells, demonstrating that these characteristic genes might mediate immunological function during endometriosis progression. Here, HLA-S is linked to endometriosis.