INTRODUCTION: A large proportion of patients with inflammatory bowel disease (IBD) experience IBD-related inflammatory conditions outside of the gastrointestinal tract, termed extraintestinal manifestations (EIMs) which further decreases quality of life and, in extreme cases, can be life threatening. The pathogenesis of EIMs remains unknown, and although gut microbiota alterations are a well-known characteristic of patients with IBD, its relationship with EIMs remains sparsely investigated. This study aimed to compare the gut microbiota of patients with IBD with and without EIMs. METHODS: A total of 131 Danish patients with IBD were included in the study, of whom 86 had a history of EIMs (IBD-EIM) and 45 did not (IBD-C). Stool samples underwent 16S rRNA sequencing. Amplicon sequence variants (ASVs) were mapped to the Silva database. Diversity indices and distance matrices were compared between IBD-EIM and IBD-C. Differentially abundant ASVs were identified using a custom multiple model statistical analysis approach, and modules of co-associated bacteria were identified using sparse correlations for compositional data (SparCC) and related to patient EIM status. RESULTS: Patients with IBD and EIMs exhibited increased disease activity, body mass index, increased fecal calprotectin levels and circulating monocytes and neutrophils. Microbiologically, IBD-EIM exhibited lower fecal microbial diversity than IBD-C (Mann-Whitneys test, p = .01) and distinct fecal microbiota composition (permutational multivariate analysis of variance; weighted UniFrac, R2 = 0.018, p = .01). A total of 26 ASVs exhibited differential relative abundances between IBD-EIM and IBD-C, including decreased Agathobacter and Blautia and increased Eggerthella lenta in the IBD-EIM group. SparCC analysis identified 27 bacterial co-association modules, three of which were negatively related to EIM (logistic regression, p < .05) and included important health-associated bacteria, such as Agathobacter and Faecalibacterium. CONCLUSIONS: The fecal microbiota in IBD patients with EIMs is distinct from that in IBD patients without EIM and could be important for EIM pathogenesis.