Chemiosmosis is the movement of ions across a semipermeable membrane, down their electrochemical gradient. An example of this would be the generation of adenosine triphosphate (ATP) by the movement of hydrogen ions (H+) across a membrane during cellular respiration or photosynthesis.