The mycobacterial ESX-1 virulence locus accelerates macrophage recruitment to the forming tuberculous granuloma. Newly recruited macrophages phagocytose previously infected apoptotic macrophages to become new bacterial growth niches. Granuloma macrophages can then necrose, releasing mycobacteria into the extracellular milieu, which potentiates their growth even further. Using zebrafish with genetic or pharmacologically induced macrophage deficiencies, we find that global macrophage deficits increase susceptibility to mycobacterial infection by accelerating granuloma necrosis. This is because reduction in the macrophage supply below a critical threshold decreases granuloma macrophage replenishment to the point where apoptotic infected macrophages, failing to get engulfed, necrose. Reducing macrophage demand by removing bacterial ESX-1 offsets the susceptibility of macrophage deficits. Conversely, increasing macrophage supply in wild-type fish by overexpressing myeloid growth factors induces resistance by curtailing necrosis. These findings may explain the susceptibility of humans with mononuclear cytopenias to mycobacterial infections and highlight the therapeutic potential of myeloid growth factors in tuberculosis.