The study of the relationships between organisms and their environments, including, interactions of living organisms with one another and with their non-living surroundings, the flow of matter and energy in an environment, and the structure and functions of nature.