Following trauma, the CNS of the medicinal leech, unlike the mammalian CNS, has a strong capacity to regenerate neurites and synaptic connections that restore normal function. In this study, we show that this regenerative process is enhanced by a controlled bacterial infection, suggesting that induction of regeneration of normal CNS function may depend critically upon the coinitiation of an immune response. We explore the interaction between the activation of a neuroimmune response and the process of regeneration by assaying the potential roles of two newly characterized antimicrobial peptides. Our data provide evidence that microbial components differentially induce the transcription, by microglial cells, of both antimicrobial peptide genes, the products of which accumulate rapidly at sites in the CNS undergoing regeneration following axotomy. Using a preparation of leech CNS depleted of microglial cells, we also demonstrate the production of antimicrobial peptides by neurons. Interestingly, in addition to exerting antibacterial properties, both peptides act as promoters of the regenerative process of axotomized leech CNS. These data are the first to report the neuronal synthesis of antimicrobial peptides and their participation in the immune response and the regeneration of the CNS. Thus, the leech CNS appears as an excellent model for studying the implication of immune molecules in neural repair.