The Solar System belongs to the Sun. More than 99% of all the matter in the Solar System is in the Sun. Everything else - planets, moons, asteroids, icy bodies, comets - is made from stuff left over from making the Sun. It's the Sun's gravity that holds everything together.