Many planets, including ours, face an almost certain end when their stars reach the end of their lives and devour them.
For example, when our own Sun dies, it will expand up to 100 times and swallow the Earth.
But a new study offers hope that at least some of these planets may survive.
The Jupiter-like planet known as Halla has survived the death of its star, Baekdu.
Astronomers found the planet, and with follow-up observations, they discovered that Baekdu had previously expanded into a red giant.
When it did, it had to inflate the star, inflating to 1.5 times the distance between itself and Halla, before shrinking back to its current size.
Despite this dramatic and violent event, Halla was imaged by astronomers using telescopes in Hawaii.
The findings are published today in a new paper titled ‘A nearby giant planet is escaping from being engulfed by its star’ published in the journal Nature.