Along with urbanization, the intensified nitrogen pollution in urban rivers and the form of black-odor rivers has become one of the biggest concerns. Better understanding of the nitrogen transformations and microbial mechanisms occurring within urban rivers could help to manage their water quality. In this study, pollution characteristics, potential nitrogen removal rate, composition and function of bacterial community, and abundance of functional genes associated with nitrogen transformation were comparatively investigated in a typical urban river (FC) and a suburban river (LH). Compared with LH, FC was characterized by higher content of nutrients, lower potential nitrogen removal rate and lower abundance of functional genes associated with nitrogen transformation in both overlying water and sediment, especially in summer. Sediment dissolved organic matter characterized by excitation−emission matrix (EEM) showed that FC was more severely polluted by high nitrogen organic matter. Our results revealed that anammox was the main nitrogen removal pathway in both rivers and potential nitrogen removal rates decreased significantly in summer. Bacterial community analysis showed that the benthic communities were more severely influenced by the pollutant than aquatic ones in both rivers. Furthermore, the FC benthic community was dominated by anaerobic respiring, fermentative, sulfate reduction bacteria. Quantitatively, the denitrification rate showed a significant positive correlation with the abundance of denitrification genes, whilst the anammox rate was significantly negatively correlated with bacterial diversity. Meanwhile, NH 4 +-N had a significant negative correlation to both denitrification and anammox in sediment. Taken together, the results indicated that the increased nitrogen pollutants in an urban river altered nitrogen removal pathways and bacterial communities, which could in turn exacerbate the nitrogen pollution to this river.