Early weaning is prone to damage intestinal barrier function, resulting in diarrhea, whereas rutin, as a natural flavonoid with multiple biological functions, shows potential in piglets. Therefore, the effects of dietary rutin on growth, antidiarrheal, barrier function, antioxidant status and cecal microbiota of weaned piglets were investigated with the control group (CON) (basal diet) and Rutin (basal diet+500 mg kg-1 rutin) groups fed for 14 days. The results showed that dietary 500 mg kg-1 rutin significantly decreased diarrhea index, serum diamine oxidase activity and total aerobic bacterial population in mesenteric lymph nodes, whereas it significantly increased the gain-to-feed ratio (G:F) and serum growth hormone content, jejunal villus height and villus height to crypt depth ratio, and also enhanced jejunal claudin-1 and zonula occludens-1 mRNA and protein expression. Meanwhile, dietary rutin significantly decreased inflammation-associated mRNA expression, malondialdehyde (MDA) content, swollen mitochondrial number and mitochondrial area in the jejunum, whereas it increased the total superoxide dismutase (T-SOD) and glutathione peroxidase activities and activated the Nrf2 signaling pathway. Moreover, dietary rutin significantly increased Firmicutes abundance and decreased Campylobacterota abundance, which were closely associated with the decreased diarrhea index and MDA content or increased Claudin-1 expression and T-SOD activity. Dietary 500 mg kg-1 rutin increased G:F by improving intestinal morphology, and alleviated diarrhea by enhancing intestinal barrier, which might be associated with the enhanced antioxidant capacity via activating the Nrf2/Keap1 signaling pathway and the improved cecal microbial composition in weaned piglets. © 2024 Society of Chemical Industry.