Necrotic cells elicit an inflammatory response through their endogenous factors with damage-associated molecular patterns. Blocking apoptosis in Drosophila wings leads to the necrosis-driven systemic immune response by unknown mechanisms. Here, we demonstrate that immune activation in response to necrotic cells is mediated by commensal gut microbiota. Removing the microbiome attenuates hyperactivation of the innate immune signaling IMD pathway in necrosis-induced flies. Necrotic cells in wings trigger Gluconobacter expansion in the gut. An isolated Gluconobacter sp. strain is sufficient for pathological IMD activation in necrosis-induced flies, while it is not inflammatory for control animals. In addition, bacterial colonization shifts the host metabolome and shortens the lifespan of necrosis-induced flies. This study shows that local necrosis triggers a pathological systemic inflammatory response through interaction between the host and the dysbiotic gut microbiome.