Eighty million years ago, in what is now São Paulo state, Brazil, a small snake burrowed through ancient soil alongside dinosaurs. Scientists have now found its nearly complete skeleton — and it is changing what we know about how snakes became snakes.

The fossil, named Tametara mirim, was discovered in rock from the late dinosaur era. The name comes from a local Indigenous language and means "adorned small" — a fitting description for a creature smaller than a pencil that has given scientists so much to study. What makes this specimen extraordinary is its condition: it is one of the best-preserved early snake fossils found anywhere on Earth, and the first articulated skeleton ever discovered in Brazil, meaning its bones are still connected in the exact arrangement they held in life.

The team, whose research was published in the journal Nature, paid close attention to Tametara's skull. In animals that dig headfirst into the soil, the skull bones grow unusually thick and dense — a adaptation that protects the head from strain while pushing through dirt. Tametara shows this trait clearly. The researchers even rebuilt its brain cavity in digital 3D, the most detailed such reconstruction ever done for an early snake. The brain confirmed what the skull suggested: reduced visual areas, pointing to an animal that spent nearly its entire life underground, in the dark.

But the real surprise came when the scientists compared Tametara to another ancient snake called Dinilysia, from Argentina. That fossil is roughly the same age — yet its brain tells a completely different story. Dinilysia had senses shaped for life on the surface, above ground. At the very dawn of snake history, these two animals were already living in entirely different worlds.

For more than a century, scientists have debated why snakes lost their limbs. One popular idea suggested they crawled into the ocean and evolved to swim. Another said they simply slipped through leaf litter on the surface. The new evidence supports a third theory: the first snakes went underground, pushing their way through tunnels in the dirt, and their bodies stretched out as they adapted to that life.

What makes this discovery hopeful is what it reveals about evolution itself. Snakes did not all become the same. Even among the oldest members of their family tree, they were already splitting apart, tuning their bodies and senses to fit different lifestyles. That adaptability — that willingness to reinvent themselves — may explain why more than 4,000 snake species thrive today on every continent except Antarctica, from blind burrowers to ocean swimmers to massive pythons.

Tametara mirim is a small witness to a big story: a story about how life finds a way, even when that way means losing every limb you have.