CNN  — 

A dinosaur with impressive armored plates across its back became mummified around 110 million years ago after enjoying one last meal before dying.

And now we know what it ate for its last meal.

Dinosaur stomachs and evidence of their diets are rarely preserved. Occasionally, seeds and twigs have been found in the guts of dinosaur remains, but never conclusive evidence about the actual plants.

In this case, a muddy tomb encased and preserved the dinosaur so well that even its stomach contents remain to tell us that it was a picky eater.

The details of this dinosaur’s plant-based diet were published Tuesday in the journal Royal Society Open Science.

“The leaf fragments and other plant fossils were preserved down to the cells,” said David Greenwood, study coauthor, Brandon University biologist and University of Saskatchewan adjunct professor, in an email.

The nodosaur, known as Borealopelta markmitchelli, was found in 2011 during mining operations north of Fort McMurray in Alberta, Canada.

After its death, the dinosaur’s remains ended up in what was an ancient sea, landing on its back in the muddy sea floor and remaining undisturbed until nine years ago.

This artist's illustration places the nodosaur in its habitat 110 million years ago.

It’s been on display at the Royal Tyrrell Museum of Palaeontology in Alberta since 2017. The fossil was unveiled after museum technician Mark Mitchell dedicated six years to painstakingly revealing the dinosaur’s preserved skin and bones from the marine rock in which it was encased.

In life, the dinosaur — a type of ankylosaur — weighed more than a ton. But it lived off of plants and favored ferns, based on the contents of its stomach. The chunk resembling its stomach is about the size of a soccer ball.

“The finding of the actual preserved stomach contents from a dinosaur is extraordinarily rare, and this stomach recovered from the mummified nodosaur by the museum team is by far the best-preserved dinosaur stomach ever found to date,” said Jim Basinger, study coauthor and University of Saskatchewan geologist, in a statement.

The fossil of the nodosaur is incredibly well preserved.

“When people see this stunning fossil and are told that we know what its last meal was because its stomach was so well preserved inside the skeleton, it will almost bring the beast back to life for them, providing a glimpse of how the animal actually carried out its daily activities, where it lived, and what its preferred food was.”

This discovery sheds light on definitive evidence of what a large herbivorous dinosaur ate — in this case, a lot of chewed-up fern leaves, some stems and twigs. The details of the plants were so well preserved in the stomach that they could be compared to samples taken from modern plants today.

“We could see the different layers of cells in a leaf fragment including the epidermis with the pores, called stomata, through wh