Using lung tissue from tuberculosis (TB) patients and myeloid deficient LDHA (LdhaLysM−/−) mice, we demonstrate that glycolysis in myeloid cells is essential for protective immunity in TB. Here, LDHA is linked to tuberculosis.