BackgroundGut microbiome and inflammatory bowel disease (IBD) are implicated in the development of depression, but the effect of their interactions on the risk of depression remains unclear. We aim to analyze the effect of interactions between gut microbiome and IBD on the risk of depression, and explore candidate genes involving the interactions. MethodsUsing the individual genotype and depression traits data from the UK Biobank, we calculated the polygenetic risk scores (PRS) of 114 gut microbiome, ulcerative colitis (UC), Crohn's disease (CD), and total IBD (CD + UC) respectively. The effects of interactions between gut microbiome and IBD on depression were assessed through a linear regression model. Moreover, for observed significant interactions between gut microbiome PRS and IBD PRS, PLINK software was used to test pair-wise single nucleotide polymorphisms (SNPs) interaction of corresponding gut microbiome PRS and IBD PRS on depression. ResultsWe found 64 candidate interactions between gut microbiome and IBD on four phenotypes of depression, such as F_Lachnospiraceae (RNT) × (CD + UC) for patient health questionnaire-9 (PHQ-9) score (P = 1.48 × 10−3), F_Veillonellaceae (HB) × UC for self-reported depression (P = 2.83 × 10−3) and P_Firmicutes (RNT) × CD for age at first episode of depression (P = 8.50 × 10−3). We observed interactions of gut-microbiome-associated SNPs × IBD-associated SNPs, such as G_Alloprevotella (HB)-associated rs147650986 (GPM6A) × IBD-associated rs114471990 (QRICH1) (P = 2.26 × 10−4). ConclusionOur results support the effects of interactions between gut microbiome and IBD on depression risk, and reported several novel candidate genes for depression.