Stegosaurus 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 Stegosaurus was alive, ferns were likely the dominant plant food. It also likely ate cycadeoids, seed ferns, and horsetails.