Background Immune activity and gut microbiota may impact the pathophysiology of irritable bowel syndrome (IBS). We aimed to determine whether antibacterial gene expression of immune activity‐defined IBS patients differed compared to healthy subjects (HS) and ulcerative colitis (UC) patients and whether antibacterial profiles reflected gut microbiota composition and IBS symptoms.

Methods Expression of 84 antibacterial genes in biopsies from HS, IBS patients (clustered according to immune activity (systemic and intestinal cytokines): immunonormal or immunoactive), and UC patients was assessed by Human Antibacterial Response RT2 Profiler PCR Array. In IBS patients, 16S rRNA gene sequencing of fecal and mucosal bacteria was performed and symptom pattern and severity were assessed.

Key Results Intestinal antibacterial gene expression profiles differed between IBS patients (n = 31) and HS (n = 16), but did not differ between IBS subgroups based on bowel habit predominance or symptom severity. Based on previously identified IBS clusters, IBS patients with normal (n = 15) and enhanced immune activity (n = 16) had clearly separate antibacterial gene expression profiles from active UC patients (n = 12) and differed compared to each other and to HS. The differences in antibacterial gene expression profiles between immunonormal and immunoactive IBS patients were also reflected in distinct fecal and mucosal microbiota composition profiles, but not in symptom pattern or severity.