The microarray‐based analysis in our study indicated that upregulated HDAC2 was a key gene for endometriosis, and tissue experiments confirmed the upregulation of HDAC2 in endometriosis tissues. Here, HDAC2 is linked to endometriosis.