Oxidative stress is a major factor that limits the development of the poultry industry. Ferulic acid (FA) has an antioxidant effect in birds, but the mechanism is not fully understood. In this study, we stimulated oxidative stress in 28-day-old female Linwu ducks by lipopolysaccharide (LPS) and fed them a diet supplemented with FA for 28 days. Results showed that FA alleviated LPS-induced growth performance regression, oxidative stress, and microbiota imbalance in ducks. An integrated metagenomics and metabolomics analysis revealed that s_Blautia_obeum, s_Faecalibacterium_prausnitzii, s_gemmiger_formicilis, and s_Ruminococcaceae_bacterium could be the biomarkers in the antioxidant effect of FA, which interacted with dihydro-3-coumaric acid, L-phenylalanine, and 13(S)-HODE, and regulated the phenylalanine metabolism and PPAR signaling pathway. This study revealed the mechanism of the antioxidant effect of FA, which provided evidence of applying FA as a new antioxidant in commercial duck production.