A rogue planet is a planetary-mass object that travels through space without being gravitationally bound to a star. Unlike Earth, Jupiter or Neptune, it does not follow a normal orbit around a host star. Some may have formed around stars and later been ejected from their planetary systems.
Young planetary systems can be chaotic. When several massive planets interact gravitationally, one planet can receive enough energy to be thrown completely out of the system. After that, it can continue travelling through interstellar space for millions or billions of years.
Scientists are investigating whether some planetary-mass objects could form directly from collapsing clouds of gas, without ever orbiting a star. The distinction between a very small brown dwarf and a rogue planet can therefore be complicated.
A rogue planet could potentially retain moons after leaving its original system. However, detecting such moons would be extremely difficult because both objects would be drifting through the darkness of interstellar space.