ATP-synthesis mechanism. One of the oxygen atoms of ADP attacks the phosphorus atom of Pi to form a pentacovalent intermediate, which then forms ATP and releases a molecule of H2O.