Understanding how biotic interactions and environmental filtering mediated by soil properties shape plant community assembly is a major challenge in ecology, especially when studying complex and hyper-diverse ecosystems like tropical forests. To shed light on the influence of both factors, we examined how the edaphic optimum of species (their niche position) relates to their edaphic range (their niche breadth) along different environmental gradients, and how this translates into functional strategies. Here we test four scenarios describing the shape of the niche breadth - niche position relationship, including one neutral scenario and three scenarios proposing different relative influences of abiotic and biotic factors on community assembly along a soil resource gradient. To do so, we used soil concentration data for five key nutrients (N, P, Ca, Mg and K), along with accurate measurements of 14 leaf, stem and root traits for 246 tree species inventoried in 101 plots located across Eastern (French Guiana) and Western (Peru) Amazonia. We found that species niche breadth increased linearly with species niche position along each soil nutrient gradient. This increase was associated with more resource acquisitive traits in the leaves and the roots for soil N, Ca, Mg and K concentration, while it was negatively associated with wood density for soil P concentration. These observations agreed with one of our hypothetical scenarios in which species with resource conservation traits are confined to the most nutrient-depleted soils (abiotic filter), but they are outperformed by faster-growing species on more fertile conditions (biotic filter). Our results refine and strengthen support for niche theories of species assembly, while providing an integrated approach to improve forest management policies.