A "cannibal galaxy" with the ability to consume the Earth – and every other star and planet in the Milky Way - is headed this way.
The good news is it that it won't hit for about four billion years.
Scientists have discovered that the massive Andromeda galaxy next to ours has a galactic halo that includes large streams of stars – the remnants of hundreds of smaller galaxies it has absorbed as it formed over the last few billion years.
The discovery offers new clues to what's in store for our own galaxy, down the track.
"The Milky Way is on a collision course with Andromeda in about four billion years. So, knowing what kind of a monster our galaxy is up against is useful in finding out the Milky Way's ultimate fate," said Dougal Mackey, a fellow at the Australian National University's Research School of Astronomy and Astrophysics.
Dr Mackey co-led the international study that discovered Andromeda's eating habits and was published in the latest edition of the journal Nature.
"Andromeda has a much bigger and more complex stellar halo than the Milky Way, which indicates that it has cannibalized many more galaxies, possibly larger ones," he said.
Andromeda also gobbled up M32p, once the third largest galaxy behind Andromeda and the Milky Way and considered the Milky Way's long-lost sibling. It was at least 20 times larger than any galaxy that has ever merged with the Milky Way.
Researchers followed a trail of astronomical crumbs to find globular clusters of stars that once belonged to other galaxies within Andromeda.
"By tracing the faint remains of these smaller galaxies with embedded star clusters, we've been able to recreate the way Andromeda drew them in and ultimately enveloped them at the different times," Dr Mackey said.
The researches realized that the Andromeda galaxy consumed other galaxies in different directions, which presents a new mystery for them to investigate.
"This is very weird and suggests that the extragalactic meals are fed from what's known as the 'cosmic web' of matter that threads the universe," said Geraint Lewis, study co-author and professor at the Sydney Institute for Astronomy and University of Sydney School of Physics.
"More surprising is the discovery that the direction of the ancient feeding is the same as the bizarre 'plane of satellites', an unexpected alignment of dwarf galaxies orbiting Andromeda."
Studying Andromeda, a large galaxy like our own, can also inform us more about the evolution of the Milky Way. Because we live in the Milky Way, it's harder to study — like trying to study an entire forest while standing inside it.
"We are cosmic archaeologists, except we are digging through the fossils of long-dead galaxies rather than human history," Professor Lewis said.
So, what happens to Earth when the inevitable collision between two massive galaxies occurs?
"I think it's unlikely the Earth will be physically destroyed by the collision with Andromeda," Dr Mackey said.
"It's not out of the question, but in general the stars in galaxies are spaced sufficiently sparsely that direct collisions between stars are rare. However, it's possible that the Sun could be thrown out of the merged Andromeda and Milky Way system by the collision, into intergalactic space, and/or a nearby close passage with another star could perturb the Earth's orbit such that the Earth can no longer support life."
A collision course future
This isn't the only collision threat facing the Milky Way.
The Large Magellanic Cloud will catastrophically collide with the Milky Way in 2 billion years, according to a study published January in the Monthly Notices of the Royal Astronomical Society. The impact, which the study says is long overdue, has a chance of sending our solar system "hurtling through space."
Our galaxy is orbited by smaller satellite galaxies, the kind of dance that can go on undisturbed for billions of years. Other times, things take a violent turn, and satellite galaxies can migrate toward the Milky Way until they collide and are gobbled up.
The Large Magellanic Cloud is fairly new to orbiting the Milky Way, entering our corner of the universe 1.5 billion years ago. It's now the brightest satellite galaxy we have, 163,000 light-years from the Milky Way. Previously, astronomers thought it would hang out in a quiet, long orbit or speed away from the gravity of the Milky Way and move on.
But new measurements suggest this little satellite galaxy was hiding a big secret, and it has a much larger mass than expected. This means the Large Magellanic Cloud is losing energy, which will trigger it to collide with the Milky Way.
"The destruction of the Large Magellanic Cloud, as it is devoured by the Milky Way, will wreak havoc with our galaxy, waking up the black hole that lives at its center and turning our galaxy into an 'active galactic nucleus' or quasar," said Marius Cautun, study author and postdoctoral fellow at Durham University's Institute for Computational Cosmology.
If it doesn't send our solar system hurtling through space, the galactic show will be something to see from Earth's perspective. The researchers suggested violent events have long shaped the universe.
"Barring any disasters, like a major disturbance to the Solar System, our descendants, if any, are in for a treat: a spectacular display of cosmic fireworks as the newly awakened supermassive black hole at the center of our galaxy reacts by emitting jets of extremely bright energetic radiation," said Carlos Frenk, study co-author and director for the Durham University's Institute for Computational Cosmology.