The aim of our study was to investigate the mechanism by which the Chinese compound Shensong Yangxin Capsule (SSYX) reduces susceptibility to arrhythmia in db/db mice. The db/db mice without drug treatment served as the model group. Other-treated db/db mice were administered SSYX for 8 weeks. Electrocardiogram (ECG), electrical mapping, pathological changes, immunofluorescence staining, real-time quantitative PCR, and Western blot analyses were then conducted. SSYX decreased arrhythmia susceptibility and shortened the abnormal ECG parameters of db/db mice. Meanwhile, SSYX restored irregular conduction direction and shortened the conduction time of the isolated heart. HE and Masson staining showed that SSYX alleviated inflammatory infiltration and collagen fiber deposition. Western blot showed that SSYX decreased the protein expression of ICAM-1, VCAM-1, and MCP-1 and increased the protein expression of occludin, ZO-1, eNOS, and Cx43. SSYX also increased the content of NO, decreased ET-1, TNF-α, IL-1β, IL-6, MCP-1, and CCR-2 mRNA expression, and increased Kv 4.2, Kv 4.3, Cav 1.2, and Nav 1.5 mRNA expression. Furthermore, SSYX decreased the fluorescence intensity of F4/80 and iNOS, increased the fluorescence intensity of CD31 and eNOS, and improved the Cx43 and α-actinin connection structure in cardiac tissues. The above therapeutic effects of SSYX were inhibited by L-NAME. SSYX reduced the susceptibility of db/db mice to arrhythmia by inhibiting the inflammatory response and macrophage polarization, and this effect of SSYX occurred through protection of endothelial cell function.