Background: Dingji Fumai decoction (DFD), a traditional herbal mixture, has been widely used to ventricular arrhythmia (VA) in clinical practice in China. However, research on the bioactive components and underlying mechanisms of DFD in VA is still scarce. Methods: Components of DFD were collected from TCMSP, ETCM, and literature. Then, the chemical structures of each component were obtained from PubChem. Next, SwissADME and SwissTargetPrediction were applied for compounds screening and targets prediction of DFD, meanwhile, targets of VA were collected from DrugBank and OMIM. Then, the H-C-T-D network as well as the PPI network were constructed based on the data obtained above. CytoNCA was utilized to filter hub genes and VarElect was used to analyze the relationship between genes and diseases. At last, Metascape was employed for systematic analysis on the potential targets of herbals against VA, and AutoDock was applied for molecular docking to verify the results.Results: A total of 434 components were collected, 168 of which were qualified, and there were 28 shared targets between DFD and VA. Three function modules of DFD were found from the PPI network. Further systematic analysis of shared genes and function modules explained the potential mechanism of DFD in the treatment of VA, molecular docking has verified the interactions. Conclusions: DFD could be employed for VA through mechanisms, including complex interactions between related components and targets, as predicted by network pharmacology and molecular docking. This work confirmed DFD could apply for the treatment of VA and promoted the explaining of DFD for VA in the molecular mechanisms.