Virulence factors expressed by enteric bacteria are pivotal for pathogen colonization and induction of intestinal disease, but the mechanisms by which host immunity regulates pathogen virulence are largely unknown. Here we show that specific antibody responses are required for downregulation of virulence gene expression in Citrobacter rodentium, an enteric pathogen that models human infections with attaching-and-effacing bacteria. In the absence of antibodies against the pathogen, phenotypically virulent C. rodentium, accumulated and infected the epithelium and subsequently invaded the lamina propia, causing host lethality. IgG induced after infection recognized virulence factors and bound virulent bacteria within the intestinal lumen, leading to their engulfment by neutrophils, while phenotypically avirulent pathogens remained in the intestinal lumen and were eventually outcompeted by the microbiota. Thus, the interplay of the innate and adaptive immune system selectively targets virulent C. rodentium in the intestinal lumen to promote pathogen eradication and host survival.