The direct effects of relative humidity and soil on aboveground biomass (AGB) versus the indirect effects mediated by stand structural diversity remain unclear in forest ecosystems across large-scale elevation gradients. Forest inventory data containing 15,260 individual trees and 104 tree species from 200 forest plots were collected. The result shows that the relative humidity, elevation, and Coefficient of Variation of Diameter at breast height (CVD) significantly influence AGB in the Tropical Thorn Forest (TTF). Regarding elevation, CVD was positive and significant, and relative humidity and SR negatively impacted AGB in sub-tropical broad-leaved forests (STBLF). In moist temperate mixed forests (MTMF), soil phosphorus and CVD have a significant positive impact, while relative humidity, elevation, and SR negatively influence AGB. Elevation and CVD have positive, while SR and soil phosphorus have a negative and insignificant effect on AGB in Dry Temperate Conifer Forests (DTCF). Soil phosphorus and relative humidity positively affected AGB (β = 0.021), while elevation, CVD, and SR negatively affect AGB in dry temperate, pure pine forests (DTPPF). Relative humidity and soil phosphorus have a positive direct effect on AGB in multi-species forests. The current study suggests that AGB primarily depends on relative humidity, soil phosphorus, and elevation in different forest types.