The study of interactions between species in a given community and the role of those interactions in ecosystem functioning.