The study of the interactions between Earth's environment and its living organisms, both in the past and present.