Thus, compounds with the potential to treat inflammation and having an affinity for estrogen receptors are good candidates for treating endometriosis. This evidence concerns the gene ESR1 and endometriosis.