The study of the interactions between living organisms and the environment, including geochemical processes.