Tooth fossils revealed between three and six members of the ancient crocodile and alligator family evolved specialised teeth for chewing on plants.
Study author Keegan Melstrom, a doctoral student at the University of Utah, analysed 146 teeth from 16 crocodyliforms.
He said: “The most interesting thing we discovered was how frequently it seems extinct crocodyliforms ate plants. Carnivores possess simple teeth whereas herbivores have much more complex teeth.”
According to the study, published in Current Biology, this evolved separately in each of the species, suggesting it was a very successful adaptation.
The plant-eating creatures appeared early in the evolutionary history of the group shortly after the end-Triassic mass extinction 200 million years ago. They would have then been killed off 66 million years ago in the end-Cretaceous mass extinction that killed off all dinosaurs except birds.
All crocodiles alive today have a similar body shape with relatively simple, conical teeth ideal for ripping apart meat. However, the tooth fossils were clearly non-carnivorous and appeared to have specialised forms not seen in modern-day animals.
To work out what they ate, researchers compared the size and shape of teeth in extinct crocodiles with those around today.
“Our work demonstrates that extinct crocodyliforms had an incredibly varied diet,” said Mr Melstrom.
“Some were similar to living crocodylians and were primarily carnivorous, others were omnivores and still others likely specialised in plants. The herbivores lived on different continents at different times, some alongside mammals and mammal relatives, and others did not.
“This suggests that an herbivorous crocodyliform was successful in a variety of environments.”
Scientists are now looking to reconstruct the diets of these extinct crocodiles, including in fossilised species that are missing teeth.
Mr Melstrom wants to find out why crocodiles diversified so radically after the end-Triassic mass extinction but not after the end-Cretaceous mass extinction, when the vegetarian crocodiles were wiped out.
Join our new commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies