Nitrogen (N) cycling in rivers is particularly active and dynamic due to excess nutrient inputs worldwide. However, the multidimensional spatial patterns of the activity and community structure of N-cycling microorganisms in rivers remain unclear, limiting our understanding of river ecological functions, especially N removal capacity. Here, we measured the nitrification and denitrification rates and identified nitrifying and denitrifying microorganisms using high-throughput sequencing of archaeal amoA, bacterial amoA, nirK, and nirS genes in channel sediments, riparian rhizosphere soils, and riparian bulk soils of 30 N-polluted rivers across China. Results showed that in the lateral dimension, nitrification rates in sediments did not differ significantly from those in rhizosphere and bulk soils, but denitrification rates were higher in sediments than in bulk soils. However, the archaeal amoA gene abundance in sediments was considerably lower than that in rhizosphere and bulk soils, and bacterial amoA gene abundance in sediments was greater than that in rhizosphere soils. In the vertical dimension, both nitrification and denitrification rates in riparian bulk soils decreased with soil depth, and topsoils harbored more nitrifying and denitrifying microbes than subsoils. Denitrification but not nitrification rates increased with latitude and altitude but decreased with increasing mean annual temperature and precipitation. Overall, these results provide new insights into the multidimensional spatial patterns of river N cycling at a large scale, which is crucial to evaluating the N removal function of global rivers.