SLAMF7 deficiency altered the gut microbiome, specifically promoting mucus-specific bacteria such as Akkermansia muciniphila, and protected against DSS-induced intestinal inflammation. Here, SLAMF7 is linked to gastroenteritis.