gravity
Every object is attracted to every other object by gravity. The force of gravity between two objects depends on the mass of the objects. It also depends on how far apart the objects are. When you are sitting next to your dog, there is a gravitational force between the two of you. That force is far too weak for you to notice. You can feel the force of gravity between you and Earth because Earth has a lot of mass. The force of gravity between the Sun and planets is also very large. This is because the Sun and the planets are very large objects. Gravity is great enough to hold the planets to the Sun even though the distances between them are enormous. Gravity also holds moons in orbit around planets.