The function or position of a species within an ecological community. A species's niche includes the physical environment to which it has become adapted as well as its role as producer and consumer of food resources. See also
competitive exclusion principle.