The tumor microenvironment is thought to affect malignant transformation and tumor progression. The histone methyltransferase, enhancer of zeste homologue 2 (EZH2), has recently been suggested to play a critical role in the tumorigenesis of several types of human cancer. The aim of this study was to investigate the effects of cancer-associated fibroblasts (CAFs) on the expression of EZH2 and the migration ability of ovarian cancer cells, in order to explore the link between the tumor microenvironment and epigenetic regulation. The ovarian cancer cell lines, A2780, SKOV3 and ES2, were indirectly co-cultured with primary ovarian CAFs or normal fibroblasts (NFs). The migration ability of the ovarian cancer cells was determined by Transwell migration assay. The expression levels of EZH2 were assessed by quantitative reverse transcription PCR (qRT-PCR) and western blot analysis. The A2780-shEZH2 cells (A2780 cells transfected with shRNA targeting EZH2) were indirectly co-cultured with CAFs or NFs, and the changes in the expression levels of EZH2 and the migration ability of the cells were detected. The migration ability of the A2780, SKOV3 and ES2 cells co-cultured with CAFs was significantly enhanced (P 0.05). Our data indicate that CAFs enhance the migration ability of ovarian cancer cells partly by increasing EZH2 expression.