The relationship of living things to one another and their environment, or the study of such relationships.