Oxygen
The much higher amount of oxygen gas around Earth is caused by the oxygen cycle. Photosynthesis takes hydrogen from water using energy from sunlight. This gives off oxygen gas. Some of the hydrogen combines with carbon dioxide to make carbohydrates. Respiration then takes oxygen gas out of the atmosphere or water and turns it into carbon dioxide and water.