Hif1α promotes aerobic glycolysis in Drosophila macrophages during bacterial infection. Here, HIF1A is linked to bacterial infectious disease.