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 these materials and has a core, mantle and crust. Rocks on Earth include igneous, sedimentary and metamorphic types that are part of a continuous rock cycle, and they have many important uses.