•The expression of IL-17 and CCR7 by iNKT cells are related to endometriosis-associated pain symptoms. The gene discussed is CCR7; the disease is endometriosis.