This Khan Academy video explains how ATP is generated in the electron transport chain through the process of oxidative phosphorylation and chemiosmosis. It also explains the differences between oxidative phosphorylation and substrate level phosphorylation.