ATP synthase is an enzyme found within membranes which uses the movement of protons (H+) across a membrane to generate ATP from ADP and inorganic phosphate molecules. It's found in the mitochondria and chloroplasts.