Gravity is important because it causes the planets to orbit the sun and produces convection cycles inside the Earth and in its atmosphere and oceans.
Gravity is responsible for the orbits of the planets around the sun.