A study in the journal Science finds that roundworms with a particular gene have lower rates of infection--not because they have stronger immunity, but because they prefer to live in environments with fewer microbes. Karen Hopkin reports