According to the nebular hypothesis: - The Sun and planets formed from a giant cloud of dust and gas that collapsed due to some event around 4.57 billion years ago. - As the cloud collapsed and began rotating faster, it flattened into a disk with the Sun forming at the center. - The terrestrial planets like Earth formed closer to the Sun from metals and rocks, while the gas giants formed beyond the frost line where ices could also form, allowing them to grow larger. - Leftover debris that did not form planets remains in regions like the Asteroid Belt and Kuiper Belt today.