the role that a species plays within its habitat is known as its niche, including:
the biotic interactions of the species (e.g organism it feeds on, organisms that feed on it)
abiotic interactions (e.g how much oxygen and carbon dioxide the species exchanges with atmosphere)