how did the earth first form
Earth formed around 4.54 billion years ago by accretion from the solar nebula. Volcanic outgassing probably created the primordial atmosphere and then the ocean; but the atmosphere contained almost no oxygen and so would have been toxic to most modern life including humans.