The solar system was formed from a massive gas cloud around 4.5 billion years ago. Early Greek astronomers began observing and developing models of the solar system in the 6th century BCE, with Aristarchus inventing the first model placing the sun at the center in 200 BCE. The solar system consists of the sun and eight planets that orbit it, as well as moons, asteroids, comets, and other celestial bodies.