The Big Bang which was that we believe was a massive amount of gas and particles close together that caused a huge explosion causing the forming of stars. And some stars were big enough so when they died they made other elements such as rocks ice and water and gas