Photosynthesis
Photosynthesis is a chemical process that converts carbon dioxide into organic compounds, especially sugars, using the energy from sunlight. Photosynthesis occurs in plants, algae and many species of bacteria, but not in archaea. Photosynthetic organisms are called photoautotrophs, since they can create their own food. In plants, algae and cyanobacteria, photosynthesis uses carbon dioxide and water, releasing oxygen as a waste product. Photosynthesis is vital for all aerobic life on Earth. In addition to maintaining normal levels of oxygen in the atmosphere, photosynthesis is the source of energy for nearly all life on earth, either directly, through primary production, or indirectly as the ultimate source of the energy in their food, the exceptions being chemoautotrophs that live in rocks or around deep sea hydrothermal vents.
The overall process is best shown by the net equation 6CO2 + 6H2O == C6H12O6 + 6O2