The Solar System consists of the Sun and everything orbiting around it due to its gravitational pull. It contains orderly arrangements of planets and smaller bodies like asteroids and comets moving with remarkable precision in orbits around the Sun. There are various theories for the origin of the Solar System, including the Sun once having a companion star that exploded, or the system beginning as a vast cloud of dust and gas that condensed and spun over time. The Solar System contains inner and outer planets of varying sizes, periods of revolution and rotation, as well as smaller bodies like asteroids and comets.