Global warming can trigger dramatic glacier area shrinkage and change the flux of glacial runoff, leading to the expansion and subsequent retreat of riparian wetlands. This elicits the interconversion of riparian wetlands and their adjacent ecosystems (e.g., alpine meadows), probably significantly impacting ecosystem nitrogen input by changing soil diazotrophic communities. However, the soil diazotrophic community differences between glacial riparian wetlands and their adjacent ecosystems remain largely unexplored. Here, soils were collected from riparian wetlands and their adjacent alpine meadows at six locations from glacier foreland to lake mouth along a typical Tibetan glacial river in the Namtso watershed. The abundance and diversity of soil diazotrophs were determined by real-time PCR and amplicon sequencing based on nifH gene. The soil diazotrophic community assembly mechanisms were analyzed via iCAMP, a recently developed null model-based method. The results showed that compared with the riparian wetlands, the abundance and diversity of the diazotrophs in the alpine meadow soils significantly decreased. The soil diazotrophic community profiles also significantly differed between the riparian wetlands and alpine meadows. For example, compared with the alpine meadows, the relative abundance of chemoheterotrophic and sulfate-respiration diazotrophs was significantly higher in the riparian wetland soils. In contrast, the diazotrophs related to ureolysis, photoautotrophy, and denitrification were significantly enriched in the alpine meadow soils. The iCAMP analysis showed that the assembly of soil diazotrophic community was mainly controlled by drift and dispersal limitation. Compared with the riparian wetlands, the assembly of the alpine meadow soil diazotrophic community was more affected by dispersal limitation and homogeneous selection. These findings suggest that the conversion of riparian wetlands and alpine meadows can significantly alter soil diazotrophic community and probably the ecosystem nitrogen input mechanisms, highlighting the enormous effects of climate change on alpine ecosystems.