M. tuberculosis (Mtb) is the leading infectious disease killer worldwide. We discovered that intracellular Mtb fails to grow in macrophages in which fatty acid β-oxidation (FAO) is blocked. Macrophages treated with FAO inhibitors rapidly generate a burst of mitochondria-derived reactive oxygen species, which promotes NADPH oxidase recruitment and autophagy to limit the growth of Mtb. We demonstrate trimetazidine, a clinically available FOA inhibitor, reduces pathogen burden in mice infected with Mtb.