Oxidative phosphorylation is a metabolic pathway of generating ATP molecule by phosphorylation (addition of phosphate to an organic compound) of ADP.This process takes place in the mitochondria of a cell during the electron transport chain.The ATP is formed as a result of the transfer of electrons from NADH or FADH$$_2$$ to O$$_2$$ by a series of electron carriers.