Every fall, billions of birds leave their breeding grounds for warmer lands. But for a small brown-and-white bird weighing just 12 grams, the journey is anything but simple. The pied flycatcher travels between 3,000 and 13,000 kilometers to reach Africa, and remarkably, birds from the same population tend to reunite there — Dutch flycatchers run into each other in specific parts of Africa just as their Spanish cousins do in other regions. The question has always been: how do they find their way back?

A team of European researchers set out to answer that question, tracking pied flycatchers from eight countries across the species' entire breeding range. Coordinated by Koosje Lamers and Janne Ouwehand from the University of Groningen under the supervision of Christiaan Both, the project followed these tiny travelers using miniature dataloggers. Their findings, published in Science, reveal that both genetics and early environment shape where each bird ends up for winter.

The migration pattern that emerged surprised even the researchers. All populations, from Spain to Siberia, first flew to Spain and Portugal in autumn. There they rested before embarking on a non-stop Atlantic crossing of approximately 40 hours — the most western leg of their journey to Africa. After landing on Africa's westernmost coast, the routes bent eastward, with Spanish birds settling in the westernmost wintering areas while Siberian birds traveled farthest, ending up in Nigeria. While Spanish breeding populations covered roughly 3,000 kilometers, their Siberian counterparts journeyed nearly 13,000 kilometers because of the long detour via Iberia.

"It is remarkable that these pied flycatchers from Siberia take such a detour," Lamers noted. A shorter route crossing the Mediterranean near Italy and then the Sahara would save them some 4,500 kilometers — a path their close relatives, the collared flycatchers, actually use. Lamers suggests this circuitous journey may be an evolutionary remnant from the ice ages, when pied flycatchers were confined to the western parts of Africa and Europe.

To isolate the effects of genetics versus environment, the researchers conducted a remarkable natural experiment: they removed Dutch eggs and had them hatched and raised by Swedish foster parents. They also moved female Dutch birds to Sweden, creating half-Dutch, half-Swedish offspring. The results were striking. Non-translocated Dutch flycatchers wintered some 500 kilometers farther east in West Africa than Swedish birds. But Dutch flycatchers raised in Sweden settled almost exactly halfway between the normal Dutch and Swedish locations — demonstrating that both inherited instincts and childhood surroundings guide their journey.

For conservationists, understanding these migration patterns offers crucial insights. As climate change shifts habitats and disrupts ancient routes, knowing how birds inherit or learn their paths could help predict which populations might adapt — and which might struggle.