Diabetes mellitus promotes atrial structural remodeling, thereby producing atrial arrhythmogenicity. Atrial arrhythmia can substantially increase the risk of premature death. The aim of this study was to investigate the role of Ras homolog gene family, member A (RhoA)/Rho associated coiled-coil forming protein kinase (ROCK) in atrial fibrosis in diabetic hearts, and the effects of fasudil hydrochloride hydrate on atrial fibrosis. An eight-week-old male Sprague-Dawley rat model of type 2 diabetes was established using a high-fat diet combined with streptozotocin [30 mg/kg, once, intraperitoneal (i.p.)]. Animals were randomly divided into three groups: Control rats, untreated diabetic rats that received vehicle, and treated diabetic rats that received Rho kinase inhibitor fasudil hydrochloride hydrate (10 mg/kg/day, i.p., for 14 weeks). The morphological features of atrial fibrosis were observed using Masson staining. The mRNA expression levels of RhoA, ROCK1, ROCK2, type-I and type-III procollagen were assessed with quantitative polymerase chain reaction. The protein levels of RhoA, ROCK1 and ROCK2 were evaluated using western blot analysis. The atria of untreated diabetic rats showed evident atrial fibrosis as compared to the control rats; the mRNA expression levels of RhoA, ROCK1, ROCK2, type-I and type-III procollagen were upregulated; and the protein levels of RhoA, ROCK1 and ROCK2 were increased. The treatment with fasudil hydrochloride hydrate significantly reduced atrial fibrosis, mRNA levels of RhoA, ROCK1, ROCK2, type-I and type-III procollagen, and the protein levels of RhoA, ROCK1 and ROCK2. The results suggested that RhoA/ROCK was involved in atrial fibrosis, and that fasudil hydrochloride hydrate ameliorates atrial fibrosis through the RhoA/ROCK pathway in rats with type 2 diabetes.