For the most part, moths evolved ears long before bats evolved echolocation.Iain Lawrie / Getty Images

The standard version of the tale—the one told in textbooks and hundreds of scientific papers—goes like this. Millions of years ago, bats evolved a kind of sonar, allowing them to perceive the world by making high-pitched calls and analyzing the rebounding echoes. This ability, known as echolocation, allowed them to pick out and pick off flying insects, even in total darkness. In response, moths repeatedly evolved ultrasonic ears that could detect bat sonar, giving them time to make evasive maneuvers. An evolutionary arms race began.

Scientists have been studying this ancient battle for 50 years, but they’ve been laboring under a critical misunderstanding for all that time. A team of researchers led by Akito Kawahara of the University of Florida has now shown that moth ears almost always evolved before bat sonar. They came first, by at least 28 million years. Their original purpose is unclear—but spotting bats wasn’t it. “I think it’s going to be a bit of a bombshell for the field,” Kawahara says.

“Most of the introductions I’ve written in my papers are wrong,” adds Jesse Barber of Boise State University, who has studied bats and moths for years, and was involved in the new study.

Though moths and butterflies are familiar, popular, and extraordinarily successful—there are more than 160,000 species—the details of their origin story have been murky. Researchers have tried to decipher those details by comparing the physical features of living and fossilized moths. But it’s “extremely difficult to estimate” how fast such features evolve, says Adriana Briscoe from the University of California, Irvine, and this approach tends to underestimate the timing of important evolutionary events—such as the origin of ears.

To get better answers, Kawahara and his team spent years traveling around the world’s nighttime forests and luring moths with ultraviolet lamps. By comparing the genes of 186 species, they created a family tree that shows how different groups are related and, crucially, when the major milestones in their evolutionary history occurred.

The closest living relatives of moths and butterflies are caddis flies, insects that spend their larval lives in the water before changing shape and taking to the air. About 300 million years ago, insects with a similar lifestyle left the water to feed on early land plants, such as mosses, liverworts, and ferns. Larvae lived inside plants, devouring them from within and eventually emerging as winged adults that flew from leaf to leaf. These were the first moths.

These creatures would probably not have spawned a dynasty of 160,000 species without two important innovations. First, about 241 million years ago, the munching jaws of the adults transformed into a coiled straw—a proboscis. This allowed them to sip the nectar of flowering plants, which were then relative newcomers, only starting their long ascendance. Second, some of the caterpillars stopped mining the interiors of plants and began feasting on the surface, eating them from outside in.

With more room, they grew bigger bodies that measured in inches rather than millimeters. The larger caterpillars could walk about to find more nutritious leaves, other host plants, or places to pupate in safety. Bigger caterpillars produced bigger adults, which could fly greater distances in search of food. This likely cemented their relationship with flowering plants. “They pollinated the flowers, the plants became diverse, and the moths became diverse in synchrony,” Kawahara says. His family tree shows that the two groups radiate in synchrony—another classic evolutionary story and one that, mercifully, “appears to be correct,” he says.

Flying high on flower power, moths thrived, but mostly by night. But about 98 million years ago, some of them became active in the day, and gave rise to the butterflies—a group that Barber wryly describes as “an uninteresting diurnal group of moths.” Here again, bats have been implicated. In 1999, Jayne Yack of Carleton University proposed that echolocating bats were such a threat that some moths escaped by fleeing the night entirely, shifting to daylight hours. “The butterfly, in effect, was therefore ‘invented’ by the bat,” she wrote.

Or was it? Bat evolution is full of its own controversies, but several studies, accounting for both fossils and genetic evidence, roughly agree that bats emerged 55 million to 65 million years ago, and developed sonar about 50 million years ago. And Kawahara’s new study, which Yack was involved in, shows that butterflies emerged far earlier than that.

Kawahara thinks the origin of butterflies is instead tied to plants—and bees. Bees evolved shortly before butterflies did, 100 million to 125 million years ago. Their appearance could have driven the evolution of both bright colors and daytime blooming in flowers—traits that moths came to exploit. So bees invented butterflies? “I think so,” Kawahara says. “I think bees are a very important part of the story. They had a very tight interaction with flowering plants, and butterflies hopped onto that and benefit from it. It has nothing to do with bats.”

Neither do the ears. Kawahara’s new family tree shows that moths evolved hearing organs on nine separate occasions. Most of these events occurred 78 million to 92 million years ago, well before bats evolved sonar 50 million years ago. As always, there are exceptions: A few groups, including hawk moths and the nocturnal hedylid butterflies, evolved ears later (on their mouths and wings, respectively) and may have done so in response to bat sonar. But the vast majority of eared moths—some 96 percent of them, by Kawahara’s estimation—did not.

“It’s puzzling,” Yack says. “All of those ears, as far as we know, are tuned to ultrasound, and therefore most likely respond to bats. So if they were ultrasound-sensitive before bats, what were they listening to?” Clues can be found in bat-free places such as the Arctic or various islands. There, moth ears are usually tuned to lower frequencies that cover natural sounds such as the rustling of predators or the flapping of wings. “It seems likely that ears evolved for that reason: to survey the world,” Barber says.

When echolocating bats arrived in that world, moths then transformed their existing ears into specialized sonar detectors, by shifting their range toward higher frequencies. Some grew in size, becoming too big for small bats to tackle. Others, like tiger moths, developed the ability to produce their own ultrasonic clicks to jam the sonar of bats. Yet others, like the stunning luna moths, extended their wings into elaborate tails that baffle bat sonar—the tails spin as the moths fly, producing illusory echoes that confuse attacking bats. In the words of Donald Griffin, who first discovered bat echolocation, the duel between bats and moths is still a “magic well” of “surprising and significant discoveries.” And perhaps the most surprising yet is that the standard story of ears and sonar isn’t right.

If moths with decent ears already existed when bats first took to the air, is it possible that bats evolved echolocation to better capture prey that could already hear them coming? Bat sonar didn’t drive the evolution of moth ears, but could it have been the other way around? “We’re not sure, and bats feed on a lot of insects,” Kawahara says. “But they do eat moths a lot, so there’s a good chance that is true.”

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