ecological niche

All the environmental conditions allowing a given species to form viable populations. Therefore, it is both the position a species occupies in the ecosystem and the environmental conditions in which it lives.