Rivers are important reservoirs of antibiotic resistance genes (ARGs). However, most current studies have focused on the temporal and spatial distribution, and data on the differences in the species and abundance of ARGs between urban and rural rivers is still lacking for certain areas. In view of this, two rural rivers and three urban rivers were selected in Shijiazhuang City. In both December 2020 and April 2021, sediments were collected at 15 sampling sites. Metagenomic sequencing technology was used to compare the differences in temporal-spatial variation for ARGs in sediments. The results showed that:① 162 and 79 ARGs were detected in urban (4 776 ±4 452) and rural rivers (1 043 ±632), respectively. The abundance and species of ARGs in urban rivers were higher than those in rural rivers. ② The relative abundances of sulfonamide (SAs,27 %), aminoglycoside (AGs,26 %), and multidrug (MDs,15 %) ARGs had the highest abundance in urban rivers, whereas the relative abundance of MDs ARGs was highest in rural rivers (65 %). On the whole, the complexity of ARGs in urban rivers was higher than that in rural rivers. ③ There was a significant positive correlation between SAs, AGs, MDs, tetracycline, phenicol, macrolides-lincosamids-streptogramins (MLS), β-lactams, and diaminopyrimidine ARGs in urban rivers (P < 0.01); however, there was a significant negative correlation between glycopeptide ARGs and all types of ARGs (P < 0.05 and P < 0.01). There was a significant positive correlation between MDs and SAs ARGs in rural rivers (P < 0.05), but there was a significant negative correlation between amino aminocoumarin, peptide, rifamycin, and fosfomycin ARGs (P < 0.05 and P < 0.01). ④ For the temporal variation in urban rivers, 162 ARGs (4 776 ±4 452) and 148 ARGs (5 673 ±5 626) were detected in December and April, respectively. For the temporal variation in rural rivers, 79 species (1 043 ±632) and 46 species (467 ±183) were detected in December and April, respectively. ⑤ RDA analysis results showed that the spatial-temporal distributions of ARGs in urban and rural rivers were different. Correlation analysis showed that the ARGs in urban rivers were significantly correlated with the number of industrial enterprises, whereas the ARGs in rural rivers were significantly correlated with the output value of animal husbandry. In general, this study identified the main influencing factors for ARGs in different rivers and provided data support for ARGs risk management in different rivers.