Planets do not float in space without gravity. All planets, including Earth, experience the force of gravity, which keeps them in orbit around the sun. Gravity is a natural phenomenon that attracts objects with mass toward each other. The greater the mass of an object, the greater its gravitational pull.