We identified two m6A regulators, namely METTL3 and YTHDF2, as diagnostic targets of endometriosis following the usage of overlapping genes to construct a diagnostic m6A signature of endometriosis through multivariate logistic regression, and we validated it using independent GSE86534 and GSE105764 cohorts. The gene discussed is YTHDF2; the disease is endometriosis.