The tissue microenvironment functions as a crucial player in carcinogenesis, and transforming growth factor-beta 1 colorectal cancer. (TGF-beta 1) within the microenvironment stimulates the formation of neoplasms. Using an in vitro model of malignancy induced by TGF-beta 1, we assessed the effect of evodiamine and berberine on the interaction between DNA methyltransferases (DNMTs) and target microRNAs (miRNAs) in the model. Colon tissues from neonatal rats 7 days of age were cultured and malignancy was induced by TGF-beta 1 in vitro for 48 h, and then the tissues were respectively treated with evodiamine and berberine for 24 h. Morphological alteration of tissues was were observed using hematoxylin and eosin staining, and the expression levels of DNMTs and targeted miRNAs screened by bioinformatics software combined with Gene chip analysis in our previous study were detected by immunohistochemistry and quantified by real-time PCR. Twenty-four hours after treatment with TGF-beta 1, expression levels of DNMT1, DNMT3A, DNMT3B and miR-152 (target DNMT1), miR-429 (target DNMT3A) and miR-29a (target DNMT3A/3B) were markedly decreased; however, after 48 h, the expression levels of DNMT1 and DNMT3A were significantly increased, but their target miRNAs were still decreased. After treatment with a DNMT inhibitor (5-Aza-dC), expression levels of the miRNAs were increased to a larger extent, but did not reach normal levels. After treatment with berberine and evodiamine for 24 h, respectively, increased expression of DNMT1, DNMT3A, DNMT3B and miR-152, miR-429, miR-29a was noted. In conclusion, the results of the present study suggest that miRNAs can also be post-transcriptionally regulated by their corresponding DNMTs and that berberine and evodiamine regulate the expression of these genes, which provides early epigenetic evidence for the prevention and therapy of colorectal cancer.