These results indicate that inactivation of immune-related genes regulated by Imd, Jnk, and TGFβ pathways promotes the survival ability of D. melanogaster larvae to infection by S. carpocapsae nematodes. The gene discussed is TGFB1; the disease is infection.