ATP synthesis is the process through which adenosine triphosphate (ATP), the primary energy currency of the cell, is produced. This process primarily occurs in the mitochondria via the electron transport chain and oxidative phosphorylation, where energy derived from electrons transported through membrane proteins is harnessed to convert adenosine diphosphate (ADP) and inorganic phosphate (Pi) into ATP.