Soil microbial fuel cells (MFCs) can control the horizontal transfer of antibiotic resistance genes (ARGs) by reducing the abundance of mobile genetic elements. However, little is known about the effect of soil MFCs on the horizontal transfer pathway of ARGs transduced by viruses. In this study, the average abundance of ARGs in soil MFCs was 11 % lower than that in the open-circuit control. Lower virus abundance in soil MFCs suggested less detriment of microbial communities. The structure of the viral community was respectively shifted by the introduction of electrodes and the stimulation of biocurrent, especially for the top three viral genera Oslovirus, Tequatrovirus and Incheonvrus in soil. The ARGs aac(6)-I, cat chloramphenicol acetyltransferase, qnrA and vanY were found as the highest health risk (Rank I), and their total abundance showed the lowest in MFCs, with a decrease of 91-99 % compared to the controls. As the main carrier of ARGs, the abundance of Caudoviricetes showed a significant positive correlation with ARGs. Viral integrase was identified respectively coexisting with arnA and vanR (Rank III) in the same contig, which might aggravate their horizontal transfer. Proteobacteria was the main host of viruses carrying ARGs, which exhibited the lowest abundance in the soil MFC. The genus Pseudomonas was the host of viruses carrying ARGs, whose amount reduced by soil MFCs. This study provides an insight into the bioelectrochemical control of ARGs horizontal transfer.