The cytokine-induced activation cascade of NF-kappaB in mammals and the activation of the morphogen dorsal in Drosophila embryos show striking structural and functional similarities (Toll/IL-1, Cactus/I-kappaB, and dorsal/NF-kappaB). Here we demonstrate that these parallels extend to the immune response of Drosophila. In particular, the intracellular components of the dorsoventral signaling pathway (except for dorsal) and the extracellular Toll ligand, spätzle regulatory gene cassette, control expression of the antifungal peptide gene drosomycin in adults. We also show that mutations in the Toll signaling pathway dramatically reduce survival after fungal infection. Antibacterial genes are induced either by a distinct pathway involving the immune deficiency gene (imd) or by combined activation of both imd and dorsoventral pathways.