The process of how the solar system formed including the nebular hypothesis and gravitational collapse.