Early Earth's atmosphere consisted mainly of carbon dioxide, nitrogen, and ammonia. Oxygen was scarce until photosynthetic organisms later produced it in large quantities.