Mice lacking secretory antibodies, including IgA, exhibited a partial reversion of stroke-induced changes in microbiota composition. Here, CD79A is linked to stroke disorder.