Two main processes were responsible for the composition of this atmosphere: chemical evolution of the volatile fraction of the accretion material forming the planet and the delivery of gasses to the planetary surface by impactors during the late heavy bombardment (LHB). The amount and composition of the volatile fraction influences the outgassing of the Earth mantle during the last planetary formation period. A very weakened form of outgassing activity can still be observed today by examining the composition of volcanic gasses. An enlightenment of the second process is based on the sparse records of the LHB impactors resulting from the composition of meteorites, observed cometary comas, and the impact material found on the Moon. However, for an assessment of the influence of the outgassing on the one hand and the LHB event on the other, one has to supplement the observations with numerical simulations of the formation of volatiles and their incorporation into the accretion material which is the precursors of planetary matter, comets and asteroids. These simulations are performed with a combined hydrodynamic-chemical model of the solar nebula (SN). We calculate the chemical composition of the gas and dust phase of the SN. From these data, we draw conclusions on the upper limits of the water content and the amount of carbon and nitrogen rich volatiles incorporated later into the accretion material. Knowing these limits we determine the portion of major gas compounds delivered during the LHB and compare it with the related quantities of the outgassed species.