16S ribosomal RNA (rRNA) gene based PCR/denaturing gradient gel electrophoresis (DGGE) and real-time PCR were used to monitor the changes in the composition of microbiota in the hindgut of piglets after oral administration of Lactobacillus sobrius S1. Six litters of neonatal piglets were divided randomly into control group and treatment group. At 7, 9, and 11 days of age, piglets in the treatment group orally received a preparation of L. sobrius S1. At 7, 14, 21(weaning), 24, and 35 days of age, one piglet from each litter was sacrificed and digesta samples of hindgut were collected. DGGE analysis of 16S rRNA gene V6–V8 region for all bacteria showed that several populations present in the hindgut of piglets, represented by far-migrating bands, disappeared after weaning. Most of these bands corresponded to Lactobacillus spp. as revealed by sequence analysis. Quantitative real-time PCR specific for lactobacilli further demonstrated that the number of lactobacilli population tended to decrease after the piglets were weaned. Drastic changes of L. amylovorus and L. sobrius in total Lactobacillus populations were also observed in the colon of piglets around weaning, as monitored by 16S rRNA gene V2–V3 region based Lactobacillus-specific PCR-DGGE. Species-specific real-time PCR also revealed that the population of L. sobrius declined apparently in the colon of piglets after weaning. No remarkable changes in the overall microbial community in the hindgut were found between control and treatment groups. However, comparison of DGGE profiles between the two groups revealed a specific band related to Clostridium disporicum that was found in treatment group on day 14. On day 35, a specific band appeared only in the control group, representing a population most closely related to Streptococcus suis (99%). Real-time PCR showed that L. sobrius 16S rRNA gene copies in treatment group were relatively higher than in the control group (10 8.45 vs. 10 6.83) on day 35, but no significant difference was observed between the two groups.