Innate immune responses against DNA are essential to counter both pathogen infections and tissue damages. Mammalian EYAs were recently shown to play a role in regulating the innate immune responses against DNA. Here, we demonstrate that the unique Drosophila eya gene is also involved in the response specific to DNA. Haploinsufficiency of eya in mutants deficient for lysosomal DNase activity (DNaseII) reduces antimicrobial peptide gene expression, a hallmark for immune responses in flies. Like the mammalian orthologues, Drosophila EYA features a N-terminal threonine and C-terminal tyrosine phosphatase domain. Through the generation of a series of mutant EYA fly strains, we show that the threonine phosphatase domain, but not the tyrosine phosphatase domain, is responsible for the innate immune response against DNA. A similar role for the threonine phosphatase domain in mammalian EYA4 had been surmised on the basis of in vitro studies. Furthermore EYA associates with IKKβ and full-length RELISH, and the induction of the IMD pathway-dependent antimicrobial peptide gene is independent of SO. Our data provide the first in vivo demonstration for the immune function of EYA and point to their conserved immune function in response to endogenous DNA, throughout evolution.