Human infants or piglets are vulnerable to intestinal microbe-caused disorders and inflammation due to their rapidly changing gut microbiota and immaturity of their immune systems at weaning. Resveratrol and curcumin have significant anti-inflammatory, bacteria-regulating and immune-promoting effects. The purpose of this study was to investigate whether dietary supplementation with resveratrol and curcumin can change the intestinal microbiota and alleviate intestinal inflammation induced by weaning in piglets. One hundred eighty piglets weaned at 21 ± 2 d were fed a control diet (CON group) or supplemented diet (300 mg/kg of antibiotics, ANT group; 300 mg/kg of resveratrol and curcumin, respectively, HRC group; 100 mg/kg of resveratrol and curcumin, respectively, LRC group; 300 mg/kg of resveratrol, RES group; 300 mg/kg of curcumin, CUR group) for 28 days. The results showed that compared with the CON group, curcumin alone and antibiotics decreased the copy numbers of Escherichia coli. Both curcumin and resveratrol down-regulated the level of Toll-like-receptor 4 mRNA and protein expression in the intestine to inhibit the release of critical inflammation molecules (interleukin-1β, tumor necrosis factor-α), and increase the secretion of immunoglobulin. Our results suggested that curcumin and resveratrol can regulate weaned piglet gut microbiota, down-regulate the TLR4 signaling pathway, alleviate intestinal inflammation, and ultimately increase intestinal immune function.