Functional diversity refers to the value, range, and distribution of functional traits within a community, such as the morphological, physiological and behavioral characteristics of species that determine the role a species plays in an ecosystem. Assessing the drivers of elevational pattern of functional diversity is crucial to predict the effects of global change on functional diversity and community structure. In our research, we collected mosses species data from 65 sampling sites and measured 11 functional traits that are related to their ecological functions. We applied double canonical correspondence analysis (DCCA) to analyze species responses to environmental conditions based on their traits. We applied generalized additive models with a Gaussian function of variance to determine the elevational patterns of functional trait composition, diversity and community structure. We applied and compared boosted regression trees (BRT) without considering functional traits and piecewise structural equation modelling (SEM) mediated with functional traits to relate environmental variables with functional diversity and functional community structure, respectively. We found the first DCCA axis accounted for the largest dissimilarities between the two groups of species and correlated mainly with the water-utilization traits. Although both functional diversity and community structure displayed negatively skewed pattern along the elevational gradient, habitat complexity and climatic variables contributed differently to their respective patterns. The SEM approach consistently outperformed the BRT approach in explaining the variations in both functional diversity and community structure. Our findings highlight the important role of functional traits in mediating the relationship between the environment and functional diversity metrics. Both biotic and abiotic processes play a significant role in shaping the community assemblages, with environmental variables having distinct impacts. Traits related to structure maintenance, water absorption, cell hydration, and nutrient acquisition were found to be key drivers of functional diversity, while water-utilization traits were mainly responsible for regulating functional community structure.