Photosynthesis ( /foʊtoʊˈsɪnθəsɪs/; from the Greek φώτο- [photo-], "light," and σύνθεσις [synthesis], "putting together", "composition") is a process used by plants and other organisms to capture the sun's energy to split off water's hydrogen from oxygen. Hydrogen is combined with carbon dioxide (absorbed from air or water) to form glucose and release oxygen. All living cells in turn use fuels derived from glucose and oxidize the hydrogen and carbon to release the sun's energy and reform water and carbon dioxide in the process (cellular respiration).
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 average rate of energy capture by photosynthesis globally is immense, approximately 130 terawatts, which is about six times larger than the power consumption of human civilization. As well as energy, photosynthesis is also the source of the carbon in all the organic compounds within organisms' bodies. In all, photosynthetic organisms convert around 100–115 petagrams of carbon into biomass per year.
Although photosynthesis can happen in different ways in different species, some features are always the same. For example, the process always begins when energy from light is absorbed by proteins called photosynthetic reaction centers that contain chlorophylls. In plants, these proteins are held inside organelles called chloroplasts, while in bacteria they are embedded in the plasma membrane. Some of the light energy gathered by chlorophylls is stored in the form of adenosine triphosphate (ATP). The rest of the energy is used to remove electrons from a substance such as water. These electrons are then used in the reactions that turn carbon dioxide into organic compounds. In plants, algae and cyanobacteria, this is done by a sequence of reactions called the Calvin cycle, but different sets of reactions are found in some bacteria, such as the reverse Krebs cycle in Chlorobium. Many photosynthetic organisms have adaptations that concentrate or store carbon dioxide. This helps reduce a wasteful process called photorespiration that can consume part of the sugar produced during photosynthesis.
The first photosynthetic organisms probably evolved about 3,500 million years ago, early in the evolutionary history of life, when all forms of life on Earth were microorganisms and the atmosphere had much more carbon dioxide. They most likely used hydrogen or hydrogen sulfide as sources of electrons, rather than water. Cyanobacteria appeared later, around 3,000 million years ago, and drastically changed the Earth when they began to oxygenate the atmosphere, beginning about 2,400 million years ago. This new atmosphere allowed the evolution of complex life such as protists. Eventually, no later than a billion years ago, one of these protists formed a symbiotic relationship with a cyanobacterium, producing the ancestor of many plants and algae. The chloroplasts in modern plants are the descendants of these ancient symbiotic cyanobacteria.