One contribution of 13 to a theme issue 'Evolutionary ecology of arthropod antimicrobial peptides'. Nematodes and arthropods likely form the taxon Ecdysozoa. Information on antimicrobial effectors from the model nematode Caenorhabditis elegans may thus shed light on the evolutionary origin of these defences in arthropods. This nematode species possesses an extensive armory of putative antimicrobial effector proteins, such as lysozymes, caenopores (or saposin-like proteins), defensin-like peptides, caenacins and neuropeptide-like proteins, in addition to the production of reactive oxygen species and autophagy. As C. elegans is a bacterivore that lives in microbe-rich environments, some of its effector peptides and proteins likely function in both digestion of bacterial food and pathogen elimination. In this review, we provide an overview of C. elegans immune effector proteins and mechanisms. We summarize the experimental evidence of their antimicrobial function and involvement in the response to pathogen infection. We further evaluate the microbe-induced expression of effector genes using WormExp, a recently established database for C. elegans gene expression analysis. We emphasize the need for further analysis at the protein level to demonstrate an antimicrobial activity of these molecules both in vitro and in vivo.This article is part of the themed issue 'Evolutionary ecology of arthropod antimicrobial peptides'.