This study was conducted to evaluate the effect of flavor on reproductive performance and fecal microbiota of sows during late gestation and lactation. A total of 20 healthy Yorkshire sows were fed a corn-soybean basal diet unsupplemented or supplemented with 0.1% flavor compound from d 90 of gestation to 25 d post-farrowing, and then the piglets were weaned. The reproductive performance and the fecal microbiota of sows were analyzed. Compared with the controls, flavor supplementation in maternal diets increased (
P
< 0.05) weaning litter weight, litter weight gain, weaning body weight, and average daily gain of piglets. There was a trend of increase in the average daily feed intake of sows (
P
= 0.09) by maternal dietary flavor addition. The backfat thickness and litter size were not affected by flavor supplementation (
P
> 0.05). The 16S rRNA analysis showed that flavor supplementation significantly increased the abundance of
Phascolarctobacterium
(
P
< 0.05), but significantly decreased genera
Terrisporobacter
,
Alloprevotella
,
Clostridium_sensu_stricto_1
, and
Escherichia-shigella
(
P
< 0.05). Spearman correlation analysis showed that
Phascolarctobacterum
was positively correlated with the average daily feed intake of sows (
P
< 0.05), the litter weight gain and average daily gain of piglets (
P
< 0.05). In contrast,
Clostridium_sensu_stricto_1
and
unclassified_f__Lachnospiraceae
were negatively correlated with the litter weight gain and average daily gain of piglets (
P
< 0.05). Taken together, dietary flavor supplementation improved the reproductive performance of the sows, which was associated with enhanced beneficial microbiota and decreased potentially pathogenic bacteria in the sows.