Endometriosis, a heterogeneous, inflammatory, and estrogen-dependent gynecological disease defined by the presence and growth of endometrial tissues outside the lining of the uterus, affects approximately 5–10% of reproductive-age women, causing chronic pelvic pain and reduced fertility. Although the etiology of endometriosis is still elusive, emerging evidence supports the idea that immune dysregulation can promote the survival and growth of retrograde endometrial debris. Peritoneal macrophages and natural killer (NK) cells exhibit deficient cytotoxicity in the endometriotic microenvironment, leading to inefficient eradication of refluxed endometrial fragments. In addition, the imbalance of T-cell subtypes results in aberrant cytokine production and chronic inflammation, which contribute to endometriosis development. Although it remains uncertain whether immune dysregulation represents an initial cause or merely a secondary enhancer of endometriosis, therapies targeting altered immune pathways exhibit satisfactory effects in preventing disease onset and progression. Here, we summarize the phenotypic and functional alterations of immune cells in the endometriotic microenvironment, focusing on their interactions with microbiota and endocrine and nervous systems, and how these interactions contribute to the etiology and symptomology of endometriosis.