The findings of the present study indicate that METTL3-mediated m6A modification impairs the decidualization of endometrial stromal cells by promoting YTHDF2-dependent degradation of FOXO1 mRNA, thus affecting embryo implantation and resulting in endometriosis-related infertility to a large extent. Here, YTHDF2 is linked to endometriosis.