A pregnant Tyrannosaurus rex has been found, shedding light on the evolution of egg-laying as well as on gender differences in the dinosaur.

The remains also could contain the holy grail of all dinosaur fossils: DNA.

"Yes, it's possible," Lindsay Zanno told Discovery News, referring to genetic material that may be present in this as well as similar dinosaur finds. "We have some evidence that fragments of DNA may be preserved in dinosaur fossils, but this remains to be tested further."

RELATED: New Dino Reveals How T. rex Became Top Predator

What has been confirmed so far is that the T. rex, which was found in Montana and dates to 68 million years ago, retained medullary bone that reveals the individual was pregnant. Medullary bone is only present in female living dinosaurs, i.e. birds, just before and during egg laying. It's this type of bone that could retain preserved DNA.

Zanno is an assistant research professor of biological sciences at North Carolina State University, where she is also head of the North Carolina Museum of Natural Sciences' Paleontology Research Lab and is curator of paleontology. She explained that medullary bone lines the marrow cavity of the long bones of birds.

"It's a special tissue that is built up as easily mobilized calcium storage just before egg laying," she said. "The outcome is that birds do not have to pull calcium from the main part of their bones in order to shell eggs, weakening their bones the way crocodiles do."

RELATED: Photos: Top 10 Largest Dinosaurs

Crocodiles, she said, are the closest living relatives of dinosaurs.

"Medullary bone is thus present just before and during egg laying, but is entirely gone after the female has finished laying eggs," she said.

Early on, Mary Schweitzer suspected that medullary bone was present in the tyrannosaur remains, and was able to confirm her suspicions after she, Zanno and their team conducted a chemical analysis of the T. rex's femur.

RELATED: 10 Best Dinosaur Discoveries of 2015

The material, found to be consistent with known medullary tissues from ostriches and chickens, contained karatan sulfate, a substance not present in any other bone types.

"This analysis allows us to determine the gender of this fossil, and gives us a window into the evolution of egg laying in modern birds," Schweitzer said.