The study of interactions that occur among organisms and their environment.