An experimental model for postweaning diarrhea with enterotoxigenic Escherichia coli F4 (ETEC F4) was set up in piglets, and the efficacy of 1% chestnut-tannin extract in preventing diarrhea was subsequently assessed. In a first trial (infection model), 32 Swiss Large White piglets (age: 24 days; average BW: 7.8 ± 0.8 kg) were randomly assigned to two experimental groups (infected [INF], noninfected [NINF]). In a subsequent trial, 72 Swiss Large White piglets (age: 26 days; average BW: 7.4 ± 1.5 kg) were blocked by BW and assigned within block to four experimental groups: NINF-CO: not infected and fed a standard control starter diet (CO); INF-CO: infected and fed the CO diet; NINF-TA: not infected and fed the CO diet supplemented with 1% chestnut extract containing 54% of hydrolysable tannins (TA); and INF-TA: infected and fed the TA diet. Both diets (TA and CO) were formulated to be isocaloric and isoproteic and to meet or surpass the nutritional requirements. In both trials, four days after weaning, piglets assigned to the INF group received an oral suspension of ETEC F4. Fecal score, ETEC shedding in feces (only in trial 2), and growth performance traits were measured for the following 14 days post infection. In both trials, more than 50% of the INF piglets developed diarrhea within six days post infection. Tannins reduced (P < 0.05) the average fecal score, the percentage of piglets in diarrhea, and the duration of diarrhea, whereas feed intake and the average daily gain were unaffected.