The gradient is established through the action of the electron transport chain (ETC) located in the inner mitochondrial membrane. During oxidative phosphorylation, electrons are transferred through a series of complexes in the ETC. This transfer is coupled with the pumping of protons from the mitochondrial matrix to the intermembrane space, creating a proton gradient.