Objective: Raw potato starch (RPS) is resistant to digestion, escapes absorption, and is metabolized by intestinal microflora in the large intestine and acts as their energy source. In this study, we compared the effect of different concentrations of RPS on the intestinal bacterial community of weaned piglets.Methods: Male weaned piglets (25-days-old, 7.03±0.49 kg) were either fed a corn/soybean-based control diet (CON, n = 6) or two treatment diets supplemented with 5% RPS (RPS5, n = 4) or 10% RPS (RPS10, n = 4) for 20 days and their fecal samples were collected. The day 0 and 20 samples were analyzed using a 16S rRNA gene sequencing technology, followed by total genomic DNA extraction, library construction, and high-throughput sequencing. After statistical analysis, five phyla and 45 genera accounting for over 0.5% of the reads in any of the three groups were further analyzed. Furthermore, short-chain fatty acids (SCFAs) in the day 20 fecal samples were analyzed using gas chromatography.Results: Significant changes were not observed in the bacterial composition at the phylum level even after 20 d post feeding (dpf); however, the abundance of <i>Intestinimonas</i> and <i>Barnesiella</i> decreased in both RPS treatment groups compared to the CON group. Consumption of 5% RPS increased the abundance of <i>Roseburia</i> (p<0.05) and decreased the abundance of <i>Clostridium</i> (p<0.01) and <i>Mediterraneibacter</i> (p< 0.05). In contrast, consumption of 10% RPS increased the abundance of <i>Olsenella</i> (p<0.05) and decreased the abundance of <i>Campylobacter</i> (p<0.05), <i>Kineothrix</i> (p<0.05), <i>Paraprevotella</i> (p<0.05), and <i>Vallitalea</i> (p<0.05). Additionally, acetate (p<0.01), butyrate (p<0.05), valerate (p = 0.01), and total SCFAs (p = 0.01) were upregulated in the RPS5 treatment groupConclusion: Feeding 5% RPS altered bacterial community composition and promoted gut health in weaned piglets. Thus, resistant starch as a feed additive may prevent diarrhea in piglets during weaning.