Bacteriocins are believed to play a key role in defining microbial diversity in different ecological niches. Here, we describe an efficient procedure to assess how bacteriocins affect gut microbiota composition in an animal model.