The Electron Transfer Chain
At the end of the electron transfer chain, the electrons are returned to the H ions, which become atoms again and combine with O2 to form H2O.
This produces the most ATP. One molecule of glucose that undergoes cellular respiration gives 36 molecules of ATP.
Therefore, 38 molecules of ATP are produced throughout the whole process.