Collagen deposition is the major cause of myocardial fibrosis, contributing to impaired cardiac contractile function in coxsackie virus B3 (CVB3)-infected hearts. Adenosine monophosphate-activated protein kinase (AMPK) has been considered as a cellular fuel gauge and super metabolic regulator, however, whether AMPK has an effect on collagen production in CVB3‑infected heart remains to be elucidated. In the present study, the association between AMPK activation and CVB3‑infected neonatal rat cardiac fibroblasts (NRCFs) was investigated. Collagen production was determined by the hydroxyproline content of the supernatant and by the expression of type I/IV collagen in the cell lysate. Rat hydroxyproline ELISA was used to detect hydroxyproline content in the supernatant. The expression of type I/IV collagen, and the phosphorylation of AMPKα‑Thr172 and p38 in the cell lysate were evaluated using western blotting. As expected, it was found that the hydroxyproline content in the supernatant, and the production of collagen I/IV in the cell lysate were significantly promoted at 48 h post‑CVB3‑infection. However, this effect was inhibited in a dose‑dependent manner when pretreated with 5‑aminoimidazole‑4‑carboxamide‑1‑4‑ribofuranoside (AICAR) for 2 h prior to CVB3‑infection. However, if the cells were preincubated with compound C or SB203580 for 30 min prior the treatment with AICAR, the inhibitive effects of AICAR were reversed. The results of the western blotting indicated that the phosphorylation of AMPKα‑Thr172 and p38 were significantly increased by AICAR in the NRCFs. However, only the phosphorylation of p38 mitogen‑activated protein kinase (MAPK) was inhibited by SB203580. In conclusion, AMPK activation reduced collagen production via the p38 MAPK‑dependent pathway in the cardiac fibroblasts induced by CVB3. The results of the present study may contribute to identifying an effective therapy for CVB3‑induced myocarditis and CVB3-associated dilated cardiomyopathy.