Apatosaurus lived in a savannah-like Jurassic environment, similar to the modern arid environments in which modern large herbivores are found. However, since grass had not yet evolved when Apatosaurus was alive, ferns were likely the dominant plant food. Its peg-like teeth could strip the leaves off of trees.