Inside every cell in your body, a strand of DNA two meters long folds itself into a shape that fits inside a space smaller than a dust mite. Now, scientists have discovered that this folding isn't random — it changes in ways that help create the rich variety of life on Earth.

Researchers at the Universitat Autònoma de Barcelona in Spain have traced how the 3D shape of DNA reorganizes during the formation of male reproductive cells across animals ranging from fish to reptiles. Their study, published in the journal Nature Communications, analyzed species whose common ancestors lived more than 350 million years ago — before dinosaurs existed.

The team, working with scientists in Australia and the United States, examined how DNA folds inside the cell nucleus in vertebrates, marsupials, and reptiles. Led by Aurora Ruiz-Herrera, a professor and researcher at UAB, they found that the genome's 3D architecture isn't fixed — it undergoes a dramatic reorganization during spermatogenesis, the process by which sperm cells form.

"In our group, we investigate how the three-dimensional organization of the genome contributes to its function and evolution," Ruiz-Herrera said. "This study demonstrates that the way DNA folds within the nucleus is key not only to reproduction but also to understanding how biodiversity is generated and maintained over millions of years."

The researchers discovered that two main factors determine how DNA folds: the total size of the genome and the structure of chromosomes. These rules seem to apply across all vertebrates, from fish to humans. The team also created a new catalog of genome interactions in germ cells across evolutionary time — a resource that other scientists can use to reconstruct how ancient ancestors' genomes might have been organized.

Laia Marín-Gual, the study's first author, said the findings open new ways to understand the relationship between DNA structure, function, and evolution. "This advance not only expands knowledge of genome function in space but also opens up new avenues for studying the relationship between DNA structure, function and evolution, with direct implications for reproductive and evolutionary biology," she said.

The international collaboration took years to complete, involving researchers from universities in Australia and the United States — even continuing through the pandemic. Scientists from UNSW Sydney, the University of Melbourne, and the University of Canberra joined colleagues from the University of Connecticut to tackle a question at the heart of biology: how does the way DNA is packed inside cells connect to the diversity of life we see around us?

The answer, it turns out, may lie in understanding how sperm cells form — and the surprising ways that DNA reshapes itself to make it possible.