Infants and young animals often suffer from intestinal damage caused by oxidative stress, which may adversely affect their overall health. Hydroxytyrosol, a plant polyphenol, has shown potential in decreasing intestinal oxidative stress, but its application and mechanism of action in infants and young animals are still inadequately documented. This study selected piglets as a model to investigate the alleviating effects of hydroxytyrosol on intestinal oxidative stress induced by diquat and its potential mechanism. Hydroxytyrosol improved intestinal morphology, characterized by higher villus height and villus height/crypt depth. Meanwhile, hydroxytyrosol led to higher expression of Occludin, MUC2, Nrf2, and its downstream genes, and lower expression of cytokines IL-1β, IL-6, and TNF-α. Both oxidative stress and hydroxytyrosol resulted in a higher abundance of Clostridium_sensu_stricto_1, and a lower abundance of Lactobacillus and Streptococcus, without a significant effect on short-chain fatty acids levels. Oxidative stress also led to disorders in bile acid (BA) metabolism, such as the lower levels of primary BAs, hyocholic acid, hyodeoxycholic acid, and tauroursodeoxycholic acid, which were partially restored by hydroxytyrosol. Correlation analysis revealed a positive correlation between these BA levels and the expression of Nrf2 and its downstream genes. Collectively, hydroxytyrosol may reduce oxidative stress-induced intestinal damage by regulating BA metabolism.