The electron transport chain generates ATPs by transferring electrons from NADH and FADH2 to carrier molecules. It takes place in the mitochondria of cells. NADH and FADH2 are crucial to the electron transport chain as they provide the electrons that are transferred to carrier molecules to generate ATP through oxidative phosphorylation.