BackgroundThe nexus plant-microbe-environment is essential to understand the ecosystem processes shaping plant health and fitness. Within this triangle, soils and associated microflora are among the key ecosystem’s drivers, underpinning plant productivity and evolution. In this study, we conducted a comprehensive analysis (physicochemical properties, enzyme activities, and taxonomic diversity) of soils under the canopy projection of Coffea arabica trees along a gradient of elevation (600, 800, and 900 m) and shade (0, 50, 100%).ResultsWhile shade had no influence on most parameters, altitude shaped the dynamics of microbial communities. Available phosphorus, soil organic carbon, and nitrate were significantly higher at 800 m, likely due to the higher activities of β-glucosidase and phosphatases at this altitude. Microbial biomass (carbon and nitrogen) and moisture were significantly higher at 600 and 900 m, which might be attributed to the abundance and richness of soil microorganisms. Indeed, metabarcoding analysis revealed a complex pattern of microbial consortia (bacteria, archaea, fungi) at the three altitudes, with the lowest index of richness recorded at 800 m. The highest number of Amplicon Sequence Variants was observed in bacteria, whose functional analysis revealed distinct metabolic adaptations across different altitudes. At 900 m, the main functional attributes favored the responses to environmental stimuli and microbial interactions; at 800 m, the predominant metabolic pathways were related to organic matter, fermentation, and bioremediation; and at the lower 600 m, the pathways shifted towards the breakdown of plant-derived compounds (e.g. geraniol, limonene, and pinene degradation).ConclusionOverall, the results indicate a higher effectiveness of the microbial consortium at 800 m, which might result in better nutrient cycling. The study highlights the importance of canopy shade species and elevation for the composition of microbial consortia in C. arabica, unveiling ecological functions beyond plant health, with implications for bio-based solutions and biotechnology.