The solar system consists of the Sun, eight planets, moons, asteroids, and comets. Earth is the third planet. Jupiter is the largest, and Mercury is the smallest. Planets orbit the Sun in elliptical paths. The solar system formed 4.6 billion years ago from a giant rotating cloud of gas.