The solar system consists of the Sun and objects that orbit around it. It formed from a large cloud of gas and dust collapsing under gravity around 4.6 billion years ago. The Sun provides energy to the solar system in the form of radiation. There are 8 major planets that orbit the Sun at varying distances and speeds, with Earth being the third planet from the Sun.