Glycolysis is the metabolic pathway that breaks down glucose to produce energy in the form of ATP. It occurs in two phases, with the first phase priming the pathway by producing intermediate molecules and consuming 2 ATP per glucose. The second phase yields a net production of 2 ATP per glucose by oxidizing intermediate molecules and harnessing the energy to phosphorylate ADP to ATP. A key regulatory step is the initial phosphorylation of glucose to glucose-6-phosphate by hexokinase, which traps glucose inside cells. Glycolysis is versatile in that it can function aerobically or anaerobically depending on oxygen availability.