Picture a squat, pig-sized creature with a turtle's beak, two downward-pointing tusks and bare, leathery skin. Now picture it waddling across a parched, broken landscape where nine out of every ten species on Earth have just been wiped out.

That was Lystrosaurus — the improbable survivor of the worst day in life's history, and, as we've now learned, one of our own distant relatives. A fossil discovery announced this month finally reveals how it pulled off the trick: it laid eggs.

For more than 150 years, palaeontologists have hunted for proof that the therapsids — the sprawling group of proto-mammals that eventually gave rise to us — produced eggs like their reptilian cousins, or whether they had already switched to live birth. The platypus and the echidna, the oddballs of the modern mammal family, still lay eggs today, so the suspicion was always there. The evidence was not.

Until now. In a paper published in PLOS One, an international team led by Professor Julien Benoit and Professor Jennifer Botha of the University of the Witwatersrand, with Dr Vincent Fernandez of the European Synchrotron in Grenoble, has described a 250-million-year-old fossil egg with a tightly curled Lystrosaurus embryo still tucked inside.

A walnut-sized mystery, solved by a beam of light

The fossil itself is not new. It was spotted back in 2008, near Oviston in South Africa's Eastern Cape, by the late palaeontologist John Nyaphuli, who picked up what looked like a nondescript nodule and chipped away to find a perfectly preserved baby skeleton coiled inside.

"I suspected even then that it had died within the egg," Professor Botha recalls, "but at the time, we simply didn't have the technology to confirm it."

That technology arrived in the form of the synchrotron — a vast particle accelerator whose X-rays can see inside a rock without breaking it open. When the team finally scanned the specimen, they found the one clue that settled the argument: the two halves of the embryo's lower jaw had not yet fused together.

"The mandible is made up of two halves that must fuse before the animal can feed," Professor Benoit explains. "The fact that this fusion had not yet occurred shows that the individual would have been incapable of feeding itself." In modern birds and turtles, that fusion happens inside the egg, well before hatching. Lystrosaurus, in other words, had died in ovo — unhatched, nestled in a soft, leathery shell that long ago dissolved away.

Why big eggs beat the apocalypse

The egg is big for the animal's size, which tells the researchers two useful things. Large eggs are yolk-rich, meaning the babies hatched well-developed, ready to feed themselves and bolt from predators. And large eggs lose water more slowly — a handy feature in the scorched, drought-ridden world that followed the End-Permian extinction 252 million years ago, an event geologists know as the Great Dying.

Grow fast. Reproduce young. Don't fuss over the kids. It is not a glamorous survival strategy, but it worked. While most of life on Earth was collapsing, Lystrosaurus spread across the supercontinent of Pangaea in astonishing numbers.

"This is the first time we can say, with confidence, that mammal ancestors like Lystrosaurus laid eggs," Professor Benoit told CNN. "A true milestone in the field."

There is something quietly moving about it: a fossil sitting in a Bloemfontein museum drawer for seventeen years, waiting for the right machine to be invented. A creature that outlasted the end of the world, and somewhere down its long line of descendants — eventually, improbably — us.