Agriculture has been a large part of the ecological success of humans1. A handful of animals, notably the fungus-growing ants, termites and ambrosia beetles2,3,4, have advanced agriculture that involves dispersal and seeding of food propagules, cultivation of the crop and sustainable harvesting5. More primitive examples, which could be called husbandry because they involve fewer adaptations, include marine snails farming intertidal fungi6 and damselfish farming algae7. Recent work has shown that microorganisms are surprisingly like animals in having sophisticated behaviours such as cooperation, communication8,9 and recognition10,11, as well as many kinds of symbiosis12,13,14,15. Here we show that the social amoeba Dictyostelium discoideum has a primitive farming symbiosis that includes dispersal and prudent harvesting of the crop. About one-third of wild-collected clones engage in husbandry of bacteria. Instead of consuming all bacteria in their patch, they stop feeding early and incorporate bacteria into their fruiting bodies. They then carry bacteria during spore dispersal and can seed a new food crop, which is a major advantage if edible bacteria are lacking at the new site. However, if they arrive at sites already containing appropriate bacteria, the costs of early feeding cessation are not compensated for, which may account for the dichotomous nature of this farming symbiosis. The striking convergent evolution between bacterial husbandry in social amoebas and fungus farming in social insects makes sense because multigenerational benefits of farming go to already established kin groups.