The microbial adaptations to the respiratory burst remain poorly understood, and establishing how the NADPH oxidase (NOX2) kills microbes has proven elusive. Here we demonstrate that NOX2 collapses the ΔpH of intracellular Salmonella Typhimurium. The depolarization experienced by Salmonella undergoing oxidative stress impairs folding of periplasmic proteins. Depolarization in respiring Salmonella mediates intense bactericidal activity of reactive oxygen species (ROS). Salmonella adapts to the challenges oxidative stress imposes on membrane bioenergetics by shifting redox balance to glycolysis and fermentation, thereby diminishing electron flow through the membrane, meeting energetic requirements and anaplerotically generating tricarboxylic acid intermediates. By diverting electrons away from the respiratory chain, glycolysis also enables thiol/disulfide exchange-mediated folding of bacterial cell envelope proteins during periods of oxidative stress. Thus, primordial metabolic pathways, already present in bacteria before aerobic respiration evolved, offer a solution to the stress ROS exert on molecular targets at the bacterial cell envelope.