Skulls of three long-snouted dolphinsJames Di Loreto / Smithsonian Institution

In the fall of 2015, while rummaging through the fossil collection of the Smithsonian National Museum of Natural History, Matthew McCurry came across a very strange skull. It belonged to an extinct dolphin named Eurhinodelphis, and it was incredibly long. The braincase was only slightly bigger than McCurry’s outstretched hand, but the snout stretched farther than his entire arm. “I was amazed that something could have a snout that long,” he says.

Today’s oceangoing dolphins have snouts on the short side, ranging from the flattish bumps of orcas to the, er, bottle noses of bottlenoses. River dolphins like the Amazonian boto or the Ganges susu have much more distended snouts that can be almost twice as long as the rest of their skulls. But Eurhinodelphis’s snout is five times longer than its braincase. It looked like a dolphin that was trying to do an impression of a swordfish, or perhaps one that had told one too many lies. For good reason, its name literally means “well-nosed dolphin.”

McCurry, a paleontologist who normally works at the Australian Museum, found many similar species of dolphins within the Smithsonian’s vaults. Parapontoporia. Xiphiacetus. Zarhinocetus. Zarhachis. Pomatodelphis. All had long snouts, and some had more teeth than any other mammal on the planet—up to 350 in some species. “People have been describing these species for a long time,” says McCurry, “but no one’s really gone further than naming them and noting that they have a long snout.”

In these bizarre skulls, McCurry saw a mystery. Many aquatic animals, from river dolphins to gharial crocodiles, have evolved long, toothy snouts to help them catch fish. But why did these particular dolphins take their snouts to such an extreme? In a curious twist, these species weren’t all part of the same lineage. Rather, they evolved from short-snouted ancestors on at least three different occasions, all during the Miocene period between 5 and 23 million years ago. “There must have been something going on in their environment at the same time to drive their evolution,” says McCurry.

To work out what that was, he first had to understand how these animals used their snouts. Working with Nick Pyenson, the Smithsonian’s expert on prehistoric whales, McCurry used a medical scanner to create digital models of the skulls of several long-snouted dolphins. He then analyzed those models with techniques that engineers use to measure the strength of beams and girders.

He found that the dolphins could easily have swept their snouts through the water at high speed, stunning fish in the way that modern billfishes like swordfish do. The different species likely used different techniques. Some, like Zarhachis, had flattened snouts, and probably swept the water from side to side at stunning speeds, just like today’s swordfish. Others, like Xiphiacetus, had snouts that were circular in cross section; like today’s marlins, they sacrificed a bit of speed for the ability to attack in any direction.

Crucially, these long-snouted species arose during a time in the middle of the Miocene when ocean temperatures started climbing. In cold water, warm-blooded predators like dolphins have an advantage over cold-blooded prey like fish or squid, because they’re better at maintaining a high metabolism and swimming at high speeds. As the oceans warm, fish can move faster and the dolphins’ advantage disappears. Perhaps some of them regained the upper hand by evolving long snouts that could swiftly sweep through shoals of prey.

During the mid-Miocene, sea levels also rose, flooding the shorelines and creating a variety of new shallow habitats. This varied coastal world effectively gave dolphins permission to be weirder. Some evolved massive underbites and perhaps used their lower jaws to skim through mud. Others developed walrus-like tusks, which they could have used to extract buried shellfish. And still others, of course, evolved extremely long snouts.

But this extraordinary period of evolutionary experimentation ended when the Miocene gave way to the Pliocene. Temperatures fell, the climate became more erratic, and the planet entered into a series of cycling ice ages. Creatures that evolved during the more stable climatic heyday disappeared. “That explains why we don’t have these weird, long-snouted dolphins around today,” says McCurry.

Studies like these are important because they highlight how the shapes of animals are shaped by their environment, and how much diversity can be lost when that environment changes, says Karina Amaral from the Federal University of Rio Grande do Sul, who was not involved in the study. “At a time when many people insist on ignoring our changing climate,” she adds, this kind of research can help to paint a clear—and concerning—image of the consequences.

We want to hear what you think about this article. Submit a letter to the editor or write to letters@theatlantic.com.