Flexi Says: All objects have a gravitational attraction to each other. This is called gravity. The attraction is proportional to the mass of the objects. The attraction is inversely proportional to the distance between the objects. Gravity keeps the planets orbiting the Sun, and moons orbiting planets. The effect of the gravity of the Sun reaches beyond the solar system, although the effect decreases to very minimal with distance. Other stars have systems of planets held together by their own gravitational attraction.