The study of the interaction between ancient organisms and their environment.