Individuals with OCD present reduced microbial diversity and lower abundance of butyrate-producing taxa, as well as altered IgA levels and increased infection susceptibility. Here, CD79A is linked to infection.