A study was conducted to evaluate the effects of resveratrol and essential oils from medicinal plants on the growth performance, immunity, digestibility, and fecal microbial shedding of weaned piglets. A total of 48 weaned piglets (8 kg initial weight, 28-d-old) were randomly allotted to four dietary treatments with 3 replications of 4 piglets each. The dietary treatments were NC (negative control; basal diet), PC (positive control; basal diet+0.002% apramycin), T1 (basal diet+0.2% resveratrol), and T2 (basal diet+0.0125% essential oil blend). All piglets were orally challenged with 5 ml culture fluid containing 2.3×108 cfu/ml of Escherichia coli KCTC 2571 and 5.9×108 cfu/ml Salmonella enterica serover Typhimurium. The PC group (p<0.05) showed the highest average daily gain (ADG) and average daily feed intake (ADFI) throughout the experimental period, although feed conversion ratio (FCR) was improved in the T1 group (p>0.05). Serum IgG level was increased in the T1 group, whereas TNF-α levels was reduced in the supplemented groups compared to control (p<0.05). The PC diet improved the dry matter (DM) digestibility, whereas PC and T2 diets improved nitrogen (N) digestibility compared to NC and T1 diets (p<0.05). Fecal Salmonella and E. coli counts were reduced in all treatment groups compared to control (p<0.05). Fecal Lactobacillus spp. count was increased in the T2 group compared to others (p<0.05). Dietary treatments had no significant effect on fecal Bacillus spp. count throughout the entire experimental period. Based on these results, resveratrol showed strong potential as antibiotic alternatives for reversing the adverse effects of weaning stress on growth performance, immunity and microbial environment in E. coli and Salmonella-challenged piglets.