The theory of solar system formation explains how the Sun and planets formed from a rotating cloud of gas and dust.