Earth's early atmosphere would have comprised surrounding material from the solar nebula, especially light gases such as hydrogen and helium, but the solar wind and Earth's own heat would have driven off this atmosphere.This changed when Earth was about 40% its present radius, and gravitational attraction allowed the retention of an atmosphere which included water.