In space, gravitational forces create trajectories where celestial objects move around each other in elliptical paths. We call this effect of gravity an orbit. Some orbits, like the Earth moving around the Sun, are almost circular. A group of planets orbiting a single star (as in our solar system), typically orbit that star on the same plane. Scientists believe these coplanar orbits are a result of the system's formation from a disk of dust surrounding the star.
A video by Insane Curiosity, September 2022