Electrons from reduced NAD and FAD produced by the Krebs cycle are donated to the electron transporter chain and the hydrogen ions (protons) are released into the mitochondrial matrix. As the electrons move across the ETC they release small amounts of energy which is used to transport the hydrogen ions through the inner membrane into the inter membrane space. This creates a hydrogen ion (proton) concentration gradient where they are more concentrated in the inter membrane space. Further along the membrane, hydrogen ions (protons) move down the gradient back into the matrix through facilitated diffusion through ATP synthase. This provides energy for ATP synthesis. At the end of the chain oxygen combines with the remaining protons and electrons to form water molecules.