The planets in our Solar System formed from the solar nebula – the disc of gas left over from the formation of our Sun. ... The gas giants on the other hand, formed far enough away from the Sun that the temperature was cool enough for these volatile gases to condense, and form these huge, less dense planets