Where did Earth's atmosphere come from?

Outgassing from volcanoes formed the Earth's original atmosphere. Later green plants converted large amounts of carbon dioxide in the atmosphere to create the modern atmosphere with roughly 20% oxygen, 80% nitrogen, and tiny amounts of other gasses.