Conclusions: Increased expression of ASPN is associated with immune infiltration in endometriosis, and ASPN can be used as a diagnostic biomarker as well as a potential immunotherapeutic target in endometriosis. This evidence concerns the gene ASPN and endometriosis.