stored in this gradient to make ATP. This process is called oxidative phosphorylation because it uses energy released by the oxidation of NADH and FADH2 to phosphorylate ADP into ATP. In plants The light reactions of photosynthesis generate ATP by the action of chemiosmosis. The photons in sunlight are received by the antenna complex of Photosystem II, which excites electrons to a higher energy level. These electrons travel down an electron transport chain, causing protons to be actively pumped across the thylakoid membrane into the thylakoid lumen. These protons then flow down their electrochemical potential gradient through an enzyme called ATP-synthase, creating ATP by the phosphorylation of ADP to ATP. The electrons from the initial light reaction reach Photosystem I, then are raised to a higher energy level by light energy and then received by an electron acceptor and reduce NADP+ to NADPH. The electrons lost from Photosystem II get replaced by the oxidation of water, which is "split" into protons and oxygen by the oxygen-evolving complex (OEC, also known as WOC, or the water-oxidizing complex). To generate one molecule of diatomic oxygen, 10 photons must be absorbed by Photosystems I and II, four electrons must move through the two photosystems, and 2 NADPH are generated (later used for carbon dioxide fixation in the Calvin Cycle). In prokaryotes Bacteria and archaea also can use chemiosmosis to generate ATP. Cyanobacteria, green sulfur bacteria, and purple bacteria synthesize ATP by a process called photophosphorylation. These bacteria use the energy of light to create a proton gradient using a photosynthetic electron transport chain. Non-photosynthetic bacteria such as E. coli also contain ATP synthase. In fact, mitochondria and chloroplasts are the product of endosymbiosis and trace back to incorporated prokaryotes. This process is described in the endosymbiotic theory. The origin of the mitochondrion triggered the origin of eukaryotes, and the origin of the plastid the origin of the Archaeplastida, one of the major eukaryotic supergroups. Chemiosmotic phosphorylation is the third pathway that produces ATP from inorganic phosphate and an ADP molecule. This process is part of oxidative phosphorylation. Emergence of chemiosmosis Thermal cycling model A stepwise model for the emergence of chemiosmosis, a key element in the origin of life on earth, proposes that primordial organisms used thermal cycling as an energy source (thermosynthesis), functioning essentially as a heat engine: self-organized convection in natural waters causing thermal cycling → added β-subunit of F1 ATP