The Bad News
The Milky Way and Andromeda are the dominant members of a small family of galaxies known as the Local Group. Whereas the universe is expanding and galaxies are generally getting farther and farther away from one another with time, the galaxies in the Local Group are bound together by family ties in the form of their mutual gravity. Our relatives aren’t going anywhere.
And there is the problem.
Andromeda and the Milky Way are actually heading toward each other in the do-si-do that constitutes life in a galaxy cluster. Recent measurements with the Hubble Space Telescope have confirmed that they will hit head on in about two billion years. Since galaxies, like atoms, are mostly empty space, they will pass through each other like ghosts, but gravity will disrupt the stars and strew them across space in gigantic spectacular streamers. Eventually they will merge into a single giant galaxy.
The bad news is that we will be dead. Earth will have been boiled and sterilized eons earlier as the sun swells and dies. The good news is that the collision will be a fiesta of new stars forming as that disruptive gravity collapses and then condenses clouds of gas and dust. New worlds, another chance. Maybe.