When muscles work intensely and oxygen supply is insufficient (anaerobic conditions), they produce energy through glycolysis, which converts glucose into pyruvate. Instead of entering the Krebs cycle and oxidative phosphorylation, pyruvate is converted into lactic acid (or lactate) to regenerate NAD+ needed for glycolysis to continue. The buildup of lactic acid lowers muscle pH, interfering with muscle contraction processes and contributing to fatigue.