The persistence of soil organic carbon (SOC) is primarily driven by microbial metabolic activities; however, how microbial effects on SOC sequestration are affected by soil nutrient status remains unclear. Here, we conducted a one-year-long in situ soil incubation experiment using mesh bags (with a mesh size of 38 μm, allowing bacterial colonization and fungal hyphal penetration while preventing root penetration). This experiment involved incubating fertile sugarcane soil and infertile sand across an elevational gradient, characterized by diverse climatic and biotic conditions within a tropical forest. Biomarkers, such as phospholipid fatty acids, carbon-, nitrogen-, and phosphorus-acquiring hydrolases, glomalin-related proteins, and amino sugars, were measured to characterize the production and accumulation of microbial biomass, exo-enzymes, extracellular glycoproteins, and microbial necromass. These measurements aimed to elucidate their respective contribution to the sequestration of SOC. We found that Gram-negative bacteria dominated the microbial community composition in fertile soil, and the higher nutrient availability was related to the production and accumulation of microbial necromass via promoting microbial biomass turnover, thus enhancing the accumulation of SOC in fertile soil. This process was negatively associated with phosphorus availability and carbon- and phosphorus-acquiring enzyme activities in fertile soil. In contrast, the SOC accumulation was positively correlated with nitrogen availability and stoichiometry (including C:N and C:P), as well as moisture content in infertile sand. However, more resources were preferentially allocated to stress-tolerant fungi and Gram-positive bacteria under nutrient deficiency in infertile sand used for microbial biomass maintenance, nutrient acquisition, and environmental adaption which further aggravated the consumption of SOC, resulting in SOC loss after one year of field incubation. Our results suggest that microbial effects on SOC persistence are highly context-dependent and nutrient availability-induced changes in microbial communities and microbial resource-allocation strategies are key processes for understanding and predicting the fate of carbon in tropical forest soils.