If a fox and an eagle eat some of the same organisms in an ecosystem, the relationship between the fox and the eagle could be classified as competition. Competition both within and between species is an important topic in ecology, especially community ecology. It is one of many interacting biotic and abiotic factors that affect community structure. It is a major affecting the availability of resources in an ecosystem is the density of individuals, or the number of organisms living in a certain area.