Entomopathogenic nematodes carrying Xenorhabdus and Photorhabdus bacteria prey on insect larvae in the soil. Now, a comprehensive analysis of the bacterial genome has revealed ubiquitous and unique families of biosynthetic gene clusters. Evaluation of the bioactivity of the natural products expressed by the most prevalent cluster families explains the functional basis of bacterial natural products involved in bacteria–nematode–insect interactions.