Antibiotic resistance gene contamination in polluted rivers remains a widely acknowledged environmental issue. This study focused on investigating the contamination conditions of antibiotic resistance genes (ARGs) in Harbin’s urban black-odor rivers, specifically Dongfeng Ditch and Hejia Ditch. The research employed a SmartChip Real-Time PCR System to explore the types, abundance, and distribution of ARGs in diverse habitats, such as surface water and sediment. Additionally, the study examined the correlation of ARGs with mobile genetic elements (MGEs) and various environmental factors. It was found that antibiotic resistance genes were prevalent in both water and sediment within the black-odor ditches. The dominant types of ARGs identified included aminoglycoside, sulfonamide, multidrug-resistant, and β-lactam ARGs. Notably, the top four ARGs, in terms of relative abundance, were sul1, fox5, qacEdelta1-01 and aadA1. Most categories of ARGs have significant positive connections with MGEs, indicating that the enrichment and spreading of ARGs in rivers are closely related to MGEs. Based on the correlation analysis, it is found that environmental factors such as dissolved oxygen (DO), ammonia nitrogen (NH4–N), and phosphate (PO4–P) played a substantial role in influencing the variations observed in ARGs. By employing a risk assessment framework based on the human association, host pathogenicity, and mobility of ARGs, the identification of seven high-risk ARGs was achieved. In addition, it is important to assess the environmental risk of ARGs from multiple perspectives (abundance,detection rateand mobility). This study provides a significant reference regarding the presence of ARGs contamination in urban inland black-odor rivers, essential for assessing the health risks associated with ARGs and devising strategies to mitigate the threat of antibiotic resistance.