A combination of competition and facilitation effects operating simultaneously among plant species appears to be the rule in nature, where these effects change along productivity gradients often in a non-proportional manner. We investigated changes in competition and facilitation between a leguminous shrub, Retama sphaerocarpa, and its associate understorey species along an environmental gradient in semi-arid southeast Spain. Our results show a change in the net balance of the interaction between the shrub and several of its associated species, from clearly positive in the water-stressed, infertile environment to neutral or even negative in the more fertile habitat. There was a weakening of facilitation along the fertility gradient as a consequence of improved abiotic conditions. Competition was the most intense for below-ground resources in the less fertile environment while total competition tended to increase towards the more productive end of the gradient. Changes in the balance of the interaction between and among different plant species along the gradient of stress were caused by a decline in facilitation rather than by a change in competition. As both competition intensity and facilitation change along gradients of resource availability, plant interactions are best viewed as dynamic relationships, the outcome of which depends on abiotic conditions.