Ecological niche refers to the position or function of an organism in a community of plants and animals.