Immunoglobulin A is best known for its role in protecting against infections at mucosal surfaces; however, it has recently become clear that IgA also plays a critical role in shaping the composition and function of the gut microbiota in mice. This evidence concerns the gene CD79A and infection.