An undated image of Afrodelatorrichnus ellenbergeri, a set of hand-feet impressions of a quadrupedal dinosaur, are seen preserved in a sandstone layer in South Africa alongside an interpretive outline of the tracks, in a combination of photos released January 29, 2020. Bordy et al. 2020 PLoS One/Handout via REUTERS

WASHINGTON (Reuters) - About 183 million years ago during the early part of the Jurassic Period, enormous amounts of lava flowed across the landscape in what is now South Africa, transforming the environment into a land of fire.

But fossil footprints described by scientists on Wednesday showed that intrepid dinosaurs and other animals managed to inhabit this region - now the semiarid Karoo region of South Africa - during quieter periods between the volcanic eruptions.

These “Karoo firewalkers,” as University of Cape Town geologist Emese Bordy called them, were some of the last animals known to have lived in this inhospitable region before it ultimately was engulfed by molten rock.

The researchers found a sandstone layer on a farm in the center of South Africa with five fossils trackways that were left by at least three different animals that walked across the moist sandy banks of a stream. One was a relatively small two-legged meat-eating dinosaur, another was a similarly small four-legged apparently plant-eating dinosaur and the third may have been a primitive mammal.

“For short time periods, the streams were flowing again, the sun was shining, the plants were growing and the animals, among them dinosaurs, were grazing and hunting,” said Bordy, who led the research published in the journal PLOS ONE. “This is attested by the vertebrate footprints of both meat- and plant-eating dinosaurs, plant remains, sediment deposits of streams and lakes, to name just a few.”

“The properties of the sandstone allow us to tell that the tracks were deposited in seasonal streams that run during flash flood events,” added Bordy, whose team also included postgraduate students Akhil Rampersadh, Miengah Abrahams and Howard Head. “Hot was hot back then, too. So no, they did not walk on the lava.”

During this time, there were major extinctions of species, especially in the oceans, caused mostly by gases emitted from immense lava flows that poured onto the land surface in South Africa. Even as it incinerated the landscape, the lava flows changed the chemistry of the atmosphere and seas.

Fossil footprints, in the absence of skeletal fossils, sometimes offer the only evidence that animals were present in an ancient environment. The sandstone containing the tracks was sandwiched in between layers of volcanic rock, revealing a picture of a functioning ecosystem that survived despite threats of devastation from further eruptions.

“This story helps us change the way we see life in stressful and hostile environments, and thus improves our understanding of the history of life on Earth,” Bordy said.