Rearrangement of genomic DNA via homologous recombination provides an alternative mechanism of gene regulation that is essential for successful colonization of the gastric mucosa by Helicobacter pylori. Inoculation of outbred mice with the H. pylori SS1 wild-type strain elicited a T helper (Th) 2 response and established a persistent infection. In contrast, inoculation with an isogenic H. pylori strain defective for homologous recombination elicited a Th1-mediated immune response and clearance of infection within 70 days. We, therefore, demonstrate that recombination is critical for mediating persistence of a microbial pathogen through the induction of ineffective immune responses.