AbstractThis study aimed to address which factors, other than topography, contribute to the floristic variation of forested slopes. The natural forest studied is located in the Sudoeste Alentejano e Costa Vicentina Nature Park (southwestern Portugal). We sampled topographic, edaphic, floristic and community structure variables along three bottom–top hillside transects. Multivariate analyses of soil variables (by PCA), and of woody species composition and floristic–environmental relationships (by CCA and pCCA) were performed. Environmental–floristic trends strongly associated with the elevation gradient were identified. At lower altitudes, the lowest species richness, the highest soil fertility, and the tallest and most dense (least available light) canopy occurred. The spatial variation in woody species composition and abundance was closely associated with Zn availability in the soil and litter groundcover, but these varibles had significant spatial structure in the studied forest. The non‐spatially structured species variance was better predicted by soil NO3− and NH4+. The spatial variation of species data not shared with environmental variables was also calculated. We suggest that the influence of topographic gradient on the variation of edaphic variables and on the distribution and abundance of woody species was mediated by overstorey tree composition. Locally dominant tree species, in particular Quercus faginea and Quercus suber, may function as “ecosystem engineers” promoting environmental changes (i.e., Zn availability in soil, litter accumulation and light availability) that influence overall floristic variation.