The study of interactions among species in communities, including competition, predation, mutualism, and trophic cascades.