Scientists have identified fossilized blubber from an ancient marine reptile that lived 180 million years ago.
Blubber is a thick layer of fat found under the skin of modern marine mammals such as whales.
His discovery in this ancient "sea monster" – an ichthyosaur – appears to confirm that the animal was warm-blooded, a rarity in reptiles.
Its skin also resembles that of modern whales and dolphins, having lost the scales characteristic of its ancestors.
The researchers say the skin was smooth, still somewhat flexible, and retained evidence of the animal's camouflage pattern.
The sea-going reptile was counter-shaded – darker on the upper side and light on the underside. This counter-balances the shading effects of natural light, making the animal more difficult to see.
"Ichthyosaurs are interesting because they have many traits in common with dolphins, but they are not closely related to those sea-dwelling mammals," said co-author Mary Schweitzer, professor of biological sciences at North Carolina State University (NCSU).
Their similar appearance suggests that ichthyosaurs and whales evolved similar strategies to adapt to marine life – an example of convergent evolution.
Prof Schweitzer said: "They have many features in common with living marine reptiles like sea turtles, but we know from the record fossil that they gave birth, which is associated with warm blood."
Co-author Johan Lindgren, from Lund University in Sweden, told BBC News: "Blubber is found in living marine mammals but noteworthy also adult individuals of the leatherback turtle. Its primary role in all of these animals seems to be insulation, and the Leatherback is unique in many aspects.
"It has metabolic rates that are higher than those of typical reptiles, and a suite of measures for heat retention and control, and collectively enable adult leatherbacks to venture into cold water environments.
"So, ichthyosaurs were able to control their body temperature at least as well as leatherbacks, but then it's hard to say if they were completely endothermic (warm-blooded) or not."
The researchers identified the blubber and skin remains on a well-preserved ichthyosaur specimen held by the Urweltmuseum Hauff in Germany. It was discovered in Holzmaden quarry, in the country's south-west, which has produced many other well-preserved fossils from the Jurassic Period.
The fossil was subjected to an exhaustive analysis of its microscopic structure and molecular composition.
"Both the body outlines and remnants of internal organs are clearly visible," said co-author Johan Lindgren, from Lund University in Sweden.
"Remarkably, the fossil is so well-preserved that it is possible to observe individual cellular layers within its skin."
The researchers identified cell-like microstructures which probably held pigment, and an internal organ thought to be the animal's liver.
The blubber-like material contained fragments of fatty acid molecules.
"This is the first direct, chemical evidence for warm-bloodedness in an ichthyosaur, because blubber is a feature of animal warm-blooded," said Prof Schweitzer.
To provide additional support for this idea, the researchers artificially matured the blubber of a modern porpoise, exposing it to high temperatures and pressures – as it would be during the process of fossilization.
The resulting "matured" porpoise blubber shared many features with the fossilized version.
Most reptiles today are cold-blooded, meaning their body temperature is determined by the warmth of their surroundings. Blubber's main function is as an insulator to help marine mammals maintain high body temperature regardless of the ambient temperature of ocean water.
As for the ichthyosaur's skin, the camouflage pattern would have provided protection from Jurassic predators such as flying pterosaurs, attacking from above, and pliosaurs (even larger marine reptiles), which would have attacked from below.
Dr. Lindgren said: "Given the density of pigment cells, and the fact that they occur in both the epidermis and dermis, we hypothesized that ichthyosaurs had a dark dorsal (upper) skin, which is also what you see in many whales that exist are deep divers (as ichthyosaurs) and venture into cold, arctic regions (as did ichthyosaurs).
"Melanic (dark) colorization would benefit ichthyosaurs as UV protection while at the sea surface, but could perhaps also help ichthyosaurs thermoregulate as is the case in the tortoise duckback."
Losing the scales and evolving smooth skin would also have helped ichthyosaurs maneuver more easily underwater.
Johan Lindgren said the still-flexible skin meant that the specimen must have been fossilized so fast that the organic molecules were trapped inside the mineral component of the fossil.
"Soft tissues, such as skin, have hitherto been considered to be so labile (easily broken down) that the only way they can survive is through full replacement by minerals. However, as it turns out, when these minerals are removed, some of the original organic remains, "Dr Lindgren explained.
The results are published in the journal Nature.
Follow Paul on Twitter.