Helicobacter pylori infects the stomachs of one in two humans and can cause sequelae that include ulcers and cancer. Here we sequenced the genomes of 97 H. pylori isolates from 52 members of two families living in rural conditions in South Africa. From each of 45 individuals, two H. pylori strains were isolated from the antrum and corpus parts of the stomach, and comparisons of their genomes enabled us to study within-host evolution. In 5 of these 45 hosts, the two genomes were too distantly related to be derived from each other and therefore represented evidence of multiple infections. From the remaining 40 genome pairs, we estimated that the synonymous mutation rate was 1.38 × 10(-5) per site per year, with a low effective population size within host probably reflecting population bottlenecks and immune selection. Some individuals showed very little evidence for recombination, whereas in others, recombination introduced up to 100-times more substitutions than mutation. These differences may reflect unequal opportunities for recombination depending on the presence or absence of multiple infections. Comparing the genomes carried by distinct individuals enabled us to establish probable transmission links. Transmission events were found significantly more frequently between close relatives, and between individuals living in the same house. We found, however, that a majority of individuals (27/52) were not linked by transmission to other individuals. Our results suggest that transmission does not always occur within families, and that coinfection with multiple strains is frequent and evolutionarily important despite a fast turnover of the infecting strains within-host.