Scientists have finally seen the invisible.

Using a powerful telescope called ALMA, located in the mountains of Chile, astronomers captured the first clear pictures of magnetic fields wrapped around gas shooting away from a newborn star. The discovery, published in the journal Nature Communications, confirms a theory scientists have held for decades about how young stars like our sun are born.

The target was NGC 1333 IRAS 4A, a young double-star system hiding inside the Perseus molecular cloud, about 960 light-years from Earth. That's incredibly far—in fact, light itself takes nearly a thousand years to make the journey from there to our planet.

Newborn stars grow by pulling in gas and dust from a disk around them. But they also blast some of that material back out into space in fast, narrow jets. Scientists have long suspected that magnetic fields— Regions of space where magnetic forces are strong—twist into a funnel or donut shape to power and shape these jets. The problem was, they had never actually seen this happen.

"For the first time, these ALMA observations have captured this invisible funnel of magnetic fields," said Tao-Chung Ching, a former researcher at the U.S. National Science Foundation's radio astronomy observatory who led the study. "This is exciting because it proves a decades-old theory about how stars, like our own sun, are born and fire off powerful cosmic jets."

ALMA's telescope was powerful enough to see details about 30 times sharper than any previous instrument could manage. The team measured the magnetic field at just a few hundred astronomical units from the star—roughly the distance from Earth to the sun, but in cosmic terms, that is impressively close. They found the field wrapped around the outflow like a coil, running perpendicular to the gas flow and matching the outflow's rotation.

That pattern exactly matched what theorists had predicted since around 2006. "We knew that IRAS 4A was a textbook case," said co-author Josep Miquel Girart of the Institute of Space Sciences in Spain.

The discovery also came with a bonus: The team uncovered a mathematical relationship that could help scientists map magnetic fields in other star-forming clouds across the universe. Understanding these fields helps explain how young stars shed extra material so they can keep growing without spinning themselves apart.

The same process, researchers say, likely plays out everywhere from baby stars to the supermassive black holes at the hearts of distant galaxies.