This study investigated the efficacy of a composite probiotics composed of lactobacillus plantarum, lactobacillus reuteri, and bifidobacterium longum in alleviating oxidative stress in weaned piglets and pregnant sows. Evaluations of growth, oxidative stress, inflammation, intestinal barrier, and fecal microbiota were conducted. Results showed that the composite probiotic significantly promoted average daily gain in piglets (p < 0.05). It effectively attenuated inflammatory responses (p < 0.05) and oxidative stress (p < 0.05) while enhancing intestinal barrier function in piglets (p < 0.01). Fecal microbiota analysis revealed an increase in the abundance of beneficial bacteria such as faecalibacterium, parabacteroides, clostridium, blautia, and phascolarctobacterium in piglet feces and lactobacillus, parabacteroides, fibrobacter, and phascolarctobacterium in sow feces, with a decrease in harmful bacteria such as bacteroides and desulfovibrio in sow feces upon probiotic supplementation. Correlation analysis indicated significant negative associations of blautia with inflammation and oxidative stress in piglet feces, while treponema and coprococcus showed significant positive associations. In sow feces, lactobacillus, prevotella, treponema, and CF231 exhibited significant negative associations, while turicibacter showed a significant positive association. Therefore, the composite probiotic alleviated oxidative stress in weaned piglets and pregnant sows by modulating fecal microbiota composition.