It is the study of ancient ecosystems and how plants adapted to the changing conditions of the environment.