KLF4 overexpression increases the autophagy level of hESCs by transcriptionally promoting ATG5 expression, and abnormally decreased KLF4 in adenomyosis impairs hESC decidualization by repressing autophagy. Here, ATG5 is linked to adenomyosis.