In the first billion years of eath's history, there was intense volcanic activity. There were loads of carbon dioxide, water vapour and nitrogen. There were smaller amounts of methane and ammonia. It was much like the atmospheres of mars and venus today.