Due to anthropogenic activities such as mining, several agricultural soils are polluted by multiple heavy metals. However, it is still unclear whether multiple heavy metals could affect the distribution of antibiotic resistance genes (ARGs), and how metals affect ARGs. To understand ARGs' distribution in heavy metal-polluted soils, we chose soils contaminated by different types and contents of heavy metals to determine the ARGs' number and abundance through high-throughput quantitative real-time PCR (HT-qPCR) in this study. Additionally, the factors affecting ARGs' distribution, such as soil properties, mobile genetic genes (MGEs), and bacterial communities, were explored. The results demonstrated that the sampled soils were primarily contaminated by Cd, As, Pb, and Zn, and the pollution load index (PLI) values of these metals ranged from 1.3 to 2.7, indicating a low to moderate degree of heavy metal contamination. The number and abundance of ARGs ranged from 44 to 113 and from 2.74 x 10(7) copies/g to 1.07 x 10(8) copies/g, respectively. Besides, abundant MGEs in soils, ranging from 1.84 x 10(6) copies/g to 5.82 x 10(6) copies/g, were observed. The pathway analysis suggested that MGEs were the most important factor directly affecting ARG abundance (0.89). Notably, heavy metals also affected the ARG abundance. Proteobacteria and Actinobacteria, the main heavy metal tolerant bacteria, were found to be the main hosts of ARGs through network analysis. ARG-carrying pathogens (ACPs) in agricultural soils were found to carry MGEs, indicating a high risk of dissemination. This study provided important information for understanding the ARGs' fate and also the key factors affecting ARGs' spread in multiple heavy metal-contaminated soils