Salt marshes are potentially one of the most efficient carbon (C) sinks worldwide and perform important ecosystem functions, but sea level rise alters marsh sediments properties and thus threatens microbial roles in ecosystem functioning. Yet, the mechanisms of interactions of biochemical processes with microorganisms and their functions are still not fully understood. Here, this study investigated metagenomic taxonomic and functional profiling from the water-land conjugation up to about 300 m, 1000 m, and 2500 m in three parallel transects, respectively, in Hangzhou Bay, China. The results showed that soil physicochemical factors drove metagenomic taxonomic and functional genes in the 2500-m transect significantly different from other sites. The 2500-m transect had a greater abundance of Chloroflexi and Acidobacteria but lower in Proteobacteria. The metagenomic functional genes related to Phosphorus Metabolism (PHO) and Potassium Metabolism (POT) increased in the 2500 m. Additionally, nutrient-cycling functions and the genera of Anaeromyxobacter, Roseiflexus, and Geobacter related to PHO, POT at 2500 m were significantly greater than those of other transects. Carbon cycling functions within Carbohydrates (CHO) also differed significantly across transects. These research results demonstrated that the relative abundance of metagenomic microorganisms and their functional genes were significantly separated across the three transects. The vegetation type, salinity, and soil properties might be among the influencing factors.