The gut microbiota is compartmentalized in the intestinal lumen and induces local immune responses, but it remains unknown whether the gut microbiota can induce systemic response and contribute to systemic immunity. We report that selective gut symbiotic gram-negative bacteria were able to disseminate systemically to induce immunoglobulin G (IgG) response, which primarily targeted gram-negative bacterial antigens and conferred protection against systemic infections by E. coli and Salmonella by directly coating bacteria to promote killing by phagocytes. T cells and Toll-like receptor 4 on B cells were important in the generation of microbiota-specific IgG. We identified murein lipoprotein (MLP), a highly conserved gram-negative outer membrane protein, as a major antigen that induced systemic IgG homeostatically in both mice and humans. Administration of anti-MLP IgG conferred crucial protection against systemic Salmonella infection. Thus, our findings reveal an important function for the gut microbiota in combating systemic infection through the induction of protective IgG.