The diversity and activity of the gut microbiota residing in humans and animals are significantly influenced by the diet. Quercetin, one of the representative polyphenols in human diets, possesses a wide range of biological properties. The aim of this study was to investigate the prebiotic effects of quercetin in antibiotic-treated mice. Gut dysbiosis was successfully induced in mice by treatment with an antibiotic cocktail. Gas chromatography and 16S rDNA high-throughput sequencing techniques were used to investigate short-chain fatty acid content and gut microbial diversity and composition. The results showed that quercetin supplementation significantly improved the diversity of the gut bacterial community in antibiotic-treated mice (P < 0.05). Meanwhile, intestinal barrier function was also recovered remarkably as indicated by a decrease in the content of serum d-lactic acid and the activity of serum diamine oxidase (P < 0.05). The length of intestinal villi and mucosal thickness were also significantly increased in response to quercetin treatment (P < 0.05). Furthermore, the production of butyrate in faeces was enhanced significantly in quercetin-treated mice (P < 0.05). In conclusion, quercetin is effective in recovering gut microbiota in mice after antibiotic treatment and may act as a prebiotic in combatting gut dysbiosis.