Thirty years. That is how long the tiny red-necked phalarope had been missing from Annagh Marsh in County Clare, Ireland. Then, in 2015, it came back — and nobody quite expected it.

On a sunny morning a few weeks before my visit, Dave Suddaby, the reserves manager with BirdWatch Ireland, led me across the machair — a type of coastal grassland — toward where these magical birds were nesting. As we walked, the habitat restoration work that had brought the species back to breed here was already casting a spell over me. The air filled with the calls of lapwings, redshanks, corncrakes and snipes. Wildflowers blazed across the ground.

The red-necked phalarope has a special name in Ireland: the "fairy bird." Irish naturalist Robert Lloyd Praeger gave it this nickname after encountering the species in this exact area during the early 1900s. The name feels fitting. These birds are pelagic, meaning they spend most of the year floating on open ocean waters far from any shore, feasting on tiny sea creatures called plankton. They usually nest on Arctic tundra, thousands of miles to the north. So finding them here, at Annagh Marsh, is extraordinary. In fact, this marsh is the most southerly breeding location for red-necked phalaropes in the entire world.

When the bird appeared, he flicked into the air and darted to the water, buoyant as a cork, elegant as a dancer. He swam in and out through the reeds, tweezering up small invertebrates with his needle-like bill. After a few minutes, he flicked back to his hidden nest in a tussock of sedge.

Watching him, I learned something surprising: in phalarope society, the females are the more colorful ones — they compete for males, who do all the egg-sitting and chick-raising once the eggs are laid. During the week I observed her mate, the female could have already crossed the North Atlantic to begin her migration. She had done her job. The males, it turns out, do the parenting.

The Irish birds join flocks that breed across the western hemisphere, then migrate south along the eastern seaboard of North America, flying over the isthmus of Panama to spend winter in the tropical Pacific. It is a journey spanning an entire ocean.

By the time I left, Dave Suddaby's phalarope had successfully hatched four chicks in late June. Soon, those chicks will be old enough to make that same incredible migration on their own, carrying on a species that nearly vanished from this magical corner of Ireland — and that, thanks to careful conservation work, is finally back.