The ecological and evolutionary dynamics of populations are shaped by the strategies they use to produce and use resources. However, our understanding of the interplay between the genetic, behavioral, and environmental factors driving these strategies is limited. Here, we report on a Caenorhabditis elegansEscherichia coli (worm-bacteria) experimental system in which the worm-foraging behavior leads to a redistribution of the bacterial food source, resulting in a growth advantage for both organisms, similar to that achieved via farming. We show experimentally and theoretically that the increased resource growth represents a public good that can benefit all other consumers, regardless of whether or not they are producers. Mutant worms that cannot farm bacteria benefit from farming by other worms in direct proportion to the fraction of farmers in the worm population. The farming behavior can therefore be exploited if it is associated with either energetic or survival costs. However, when the individuals compete for resources with their own type, these costs can result in an increased population density. Altogether, our findings reveal a previously unrecognized mechanism of public good production resulting from the foraging behavior of C. elegans, which has important population-level consequences. This powerful system may provide broad insight into explorationexploitation tradeoffs, the resultant ecoevolutionary dynamics, and the underlying genetic and neurobehavioral driving forces of multispecies interactions.foraging behavior | public goods | predator-prey | population dynamics | farming T he fitness of an organism is affected by its strategies to produce, explore, and exploit resources (1, 2). These strategies are influenced, in large part, by interdependencies among organisms, such as competition, predation (3, 4), mutualism (5-7), or the production of public good resources (8-10). Despite the wide prevalence of such interactions in nature as well as numerous theoretical and empirical studies, we are still limited in our mechanistic understanding of the interplay between different survival strategies, the resultant evolutionary dynamics and the underlying genetic, neurobehavioral, and ecological driving forces. In this pursuit, model systems in the laboratory have served as a useful bridge between the complexity of nature and the simplifications inherent in theoretical investigations. Such model systems have predominantly been either microbial (11, 12) or higher organisms, such as primates and humans (13-16). Microbial systems are very convenient due to their genetic tractability and short generation times but are limited in the space of behavioral traits they exhibit. At the other extreme, higher organisms exhibit rich neurobehavioral and genetic traits, but they are difficult to experimentally manipulate and generation times are very long.Recently, organisms such as the nematode worm Caenorhabditis elegans and the fruit fly Drosophila melanogaster have been increasingly used in evolutionary and behavioral stu...