The solar system is centered around the sun, with nine planets orbiting it due to the sun's immense gravitational pull. The planets formed from a cloud of gas and dust that collapsed under gravity and began spinning, with larger clumps forming the planets. The inner planets are rocky and close to the sun, while the outer planets are large gas giants farther from the sun. Other objects in the solar system include comets, asteroids, and meteoroids.