Gravity between the sun and the planets keeps the planets in orbit around the sun. Gravity provides a centripetal force on the planets. Gravity also keeps the moons in orbit around their planets. The rings of Saturn, which are made of tiny pieces of ice and dust, are kept in place because of gravity.