Aberrant immune responses toward commensal gut bacteria can result in the onset and perpetuation of inflammatory bowel diseases (IBD). Reduced microbiota diversity in conjunction with lower proportion of Gram positive and higher proportion of Gram negative bacteria than in healthy subjects is frequently reported in IBD patients. In a subset of IBD patients, E. coli strains with specific features trigger disease. Important molecular mechanisms underlying this effect have been identified. However, in the majority of patients the exact nature of host-microbe interactions that contribute to IBD development has so far not been defined. The application of metagenomic techniques may help to identify bacterial functions that are involved in the aggravation or alleviation of IBD. Subsequently, the relevance for disease development of bacterial candidate genes may be tested taking advantage of reductionist animal models of chronic gut inflammation. This approach may help to identify bacterial functions that can be targeted in future concepts of IBD therapy.