The role that an organism plays in the ecosystem and includes its biotic (living) interactions, such as the food it eats and the predators which it needs to hide from, as well as its abiotic (non-living) interactions, such as the gases which it breathes or the sunlight it absorbs