The study of the chemical substances present in the environment and their impact on living organisms.