ATP synthase is the enzyme that makes ATP by chemiosmosis. It allows protons to pass through the membrane and uses the kinetic energy to phosphorylate ADP, making ATP. The generation of ATP by chemiosmosis occurs in chloroplasts and mitochondria as well as in most bacteria and archaea.