text: 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.