The universe began with a huge explosion known as the Big Bang. Gas clouds formed as atoms were drawn together by gravity, and inside these clouds, extremely hot spheres of gas known as stars formed. Nuclear fusion in stars produced heavier elements that were ejected when the stars died. The Earth formed from accumulating dust and debris. It has three main layers - an iron core, a rocky mantle, and a solid crust. Rocks on Earth include igneous, sedimentary, and metamorphic types that are continuously recycled through the rock cycle.