Crop roots selectively recruit certain microbial taxa that are essential for supporting their growth. Within the recruited microbes, some taxa are consistently enriched in the rhizosphere across various locations and crop genotypes, while others are unique to specific planting sites or genotypes. Whether these differentially enriched taxa are different in community composition and how they interact with nutrient cycling need further investigation. Here, we sampled bulk soil and the rhizosphere soil of five soybean varieties grown in Shijiazhuang and Xuzhou, categorized the rhizosphere-enriched microbes into shared, site-specific, and variety-specific taxa, and analyzed their correlation with the diazotrophic communities and microbial genes involved in nitrogen (N) cycling. The shared taxa were dominated by Actinobacteria and Thaumarchaeota, the site-specific taxa were dominated by Actinobacteria in Shijiazhuang and by Nitrospirae in Xuzhou, while the variety-specific taxa were more evenly distributed in several phyla and contained many rare operational taxonomic units (OTUs). The rhizosphere-enriched taxa correlated with most diazotroph orders negatively but with eight orders including Rhizobiales positively. Each group within the shared, site-specific, and variety-specific taxa negatively correlated with bacterial amoA and narG in Shijiazhuang and positively correlated with archaeal amoA in Xuzhou. These results revealed that the shared, site-specific, and variety-specific taxa are distinct in community compositions but similar in associations with rhizosphere N-cycling functions. They exhibited potential in regulating the soybean roots’ selection for high-efficiency diazotrophs and the ammonia-oxidizing and denitrification processes. This study provides new insights into soybean rhizosphere-enriched microbes and their association with N cycling.Key points• Soybean rhizosphere affected diazotroph community and enriched nifH, amoA, and nosZ.• Shared and site- and variety-specific taxa were dominated by different phyla.• Rhizosphere-enriched taxa were similarly associated with N-cycle functions.