Constipation and systemic inflammation are common in late pregnant and lactating sows, which cause health problems like uteritis, mastitis, dystocia, or even stillbirth, further influencing piglets’ survival and growth. Probiotic supplementation can improve such issues, but the beneficial mechanism of relieving constipation and enhancing gut motility remains underexplored. This study aimed to investigate the effects and mechanism of probiotic supplementation in drinking water to late pregnant sows on constipation, inflammation, and piglets’ growth performance. Seventy-four sows were randomly allocated to probiotic (n = 36) and control (n = 38) groups. Probiotic treatment significantly relieved sow constipation, enhanced serum IL-4 and IL-10 levels while reducing serum IL-1β, IL-12p40, and TNF-α levels, and increased piglet daily gain and weaning weight. Furthermore, probiotic administration reshaped the sow gut bacteriome and phageome structure/diversity, accompanied by increases in some potentially beneficial bacteria. At 113 days of gestation, the probiotic group was enriched in several gut microbial bioactive metabolites, multiple carbohydrate-active enzymes that degrade pectin and starch, fecal butyrate and acetate, and some serum metabolites involved in vitamin and amino acid metabolism. Our integrated correlation network analysis revealed that the alleviation of constipation and inflammation was associated with changes in the sow gut bacteriome, phageome, bioactive metabolic potential, and metabolism.