Metabolic adaptation to the host niche is a defining feature of the pathogenicity of Mycobacterium tuberculosis (Mtb). In vitro, Mtb is able to grow on a variety of carbon sources, but mounting evidence has implicated fatty acids as the major source of carbon and energy for Mtb during infection. When bacterial metabolism is primarily fueled by fatty acids, biosynthesis of sugars from intermediates of the tricarboxylic acid cycle is essential for growth. The role of gluconeogenesis in the pathogenesis of Mtb however remains unaddressed. Phosphoenolpyruvate carboxykinase (PEPCK) catalyzes the first committed step of gluconeogenesis. We applied genetic analyses and 13 C carbon tracing to confirm that PEPCK is essential for growth of Mtb on fatty acids and catalyzes carbon flow from tricarboxylic acid cycle-derived metabolites to gluconeogenic intermediates. We further show that PEPCK is required for growth of Mtb in isolated bone marrow-derived murine macrophages and in mice. Importantly, Mtb lacking PEPCK not only failed to replicate in mouse lungs but also failed to survive, and PEPCK depletion during the chronic phase of infection resulted in mycobacterial clearance. Mtb thus relies on gluconeogenesis throughout the infection. PEPCK depletion also attenuated Mtb in IFNγ-deficient mice, suggesting that this enzyme represents an attractive target for chemotherapy.carbon metabolism | gluconeogenesis | metabolomics | microbial pathogenesis | phosphoenolpyruvate carboxykinase