Ecological complementarity refers to the way different species within an ecosystem perform distinct ecological roles that enhance overall ecosystem functioning and resilience. This concept underscores the importance of biodiversity, as it suggests that a variety of species can lead to more efficient resource use and greater stability in ecosystems.