Because of limitations imposed on the antibiotic use in animal industry, there is a need for alternatives to maintain the efficiency of production. One of them may be the use of fermented liquid feed (FLF) but how it affects gut ecology is poorly understood. We investigated the effect of three diets, standard dry feed (control), dry feed supplemented with antibiotics, and fermented liquid feed (FLF, fermented with Lactobacillus plantarum), on gut bacterial diversity in piglets. The structure of the ileal and caecal communities was estimated by sequencing the SSU rRNA gene libraries. Antibiotic-supplemented feed slightly increased bacterial diversity in the ileum but reduced it in the caecum while in FLF-fed animals bacterial diversity was elevated. The majority of bacterial sequences in the ileum of all three groups belonged to lactobacilli (92–98%). In the caecum the lactobacilli were still dominant in control and antibiotic-fed animals (59% and 64% of total bacterial sequences, respectively) but in FLF-fed animals they fell to 31% with the concomitant increase in the Firmicutes diversity represented by the Dorea, Coprococcus, Roseburia and Faecalibacterium genera. Thus FLF affects the gut ecology in a different way than antibiotics and contributes to the enhanced bacterial diversity in the gastrointestinal tract.