Diet can affect health directly or by altering the gut microbiota; thus, there are strong interrelationships between the gut immune system, gut microbiota, and diet. This study examined the effects of ingesting AIN-93M purified diet on gut immune function and gut microbiota in DO11.10 mice, in which T cell–dependent and –independent IgA can be analysed separately. Ingestion of the purified diet for 2 weeks reduced both T cell–dependent and –independent secretory IgA in the faeces compared with non-purified diet, whereas the diet did not affect T cell–dependent and –independent serum IgA. Ingestion of the purified diet had no effect on systemic immune system splenocyte responses. Ingestion of the purified diet reduced intestinal tissue expression levels of BAFF and APRIL, cytokines involved in T cell–independent IgA production, and pIgR, which transports IgA into the intestinal lumen. Co-abundance group analysis of the intestinal microbiota was conducted based on correlations between changes in the abundance of bacterial genera, and the correlations between co-abundance groups and IgA were determined. The Allobaculum-dominated co-abundance group expanded following ingestion of the purified diet, accompanied by an inverse correlation with the decrease in faecal IgA, whereas the Lactobacillus-dominated co-abundance group shrank relative to the Allobaculum-dominated co-abundance group. These results suggest that T cell–independent IgA suppresses the expansion of some intestinal bacteria and that ingestion of the purified diet induces dysbiosis via impaired IgA secretion into the intestinal lumen.