When oxygen supply is insufficient, typically during intense muscular activity, energy must be released through anaerobic metabolism.
Overall, the glycolysis part of the cycle produces 2 ATP molecules at a cost of 6 ATP molecules consumed in the gluconeogenesis part.