Endometriosis, an estrogen-dependent chronic inflammatory condition, afflicts reproductive-aged women. However, the underlying pathological mechanisms remain to be elucidated. Nicotinamide N-methyltransferase (NNMT) is a critical enzyme involved in cellular metabolism and methylation regulation. This study investigated the role of NNMT in endometriosis. By analyzing datasets GSE5108, GSE7305, GSE141549, GSE23339, and GSE25628, we identified a significant overexpression of NNMT in the eutopic endometrium and ectopic lesions of endometriosis patients compared to normal endometrium. Furthermore, NNMT was upregulated in collected endometrioma specimens and isolated primary endometrial stromal cells (ESCs) compared to their respective controls. Inhibition of NNMT using JBSNF-000088 attenuated the proliferation, migration, and invasion of ESCs. In vivo, treatment of mouse models of endometriosis with JBSNF-000088 resulted in a marked reduction in lesion weight and quantity. NNMT expression in ESCs was dose-dependently upregulated by 17β-estradiol at concentrations of 1 nM, 10 nM, and 100 nM, an effect that was attenuated by 10 nM progesterone. Additionally, treating HESCs with macrophage-conditioned medium elevated NNMT expression at both mRNA and protein levels. Knockdown of NNMT impeded the proliferation, migration, and invasion of ESCs, which was paralleled by decreased phosphorylation levels of Erb-b2 receptor tyrosine kinase 4 (ERBB4), PI3K, and AKT. Conversely, overexpressing ERBB4 mitigated the NNMT knockdown-induced decline in phosphorylated PI3K and AKT and rescued the proliferation of ESCs. Altogether, these results indicate that the overexpression of NNMT induced by estrogen and macrophage interaction modulates ESC proliferation via the NNMT-ERBB4-PI3K/AKT signaling pathway, as well as promotes cellular migration and invasion, contributing to the development of endometriosis.