Resistant starch (RS) was recently approved to exert a powerful influence on gut health, but the effect of RS on the cecal barrier function in meat ducks has not been well defined. Thus, the effect of raw potato starch (RPS), a widely adopted RS material, on microbial composition and barrier function of cecum for meat ducks was determined. Cherry Valley male ducks, 360,1-day-old, were randomly divided and fed diets with 0% (control), 12%, or 24% RPS for 35 d. Diets Supplemented with RPS significantly elevated villus height and villus height: crypt depth ratio in the cecum. The 16S rRNA sequence analysis indicated that the diet with 12% RPS had a higher relative abundance of Firmicutes and the butyrate-producing bacteria Faecalibacterium, Subdoligranulum, and Erysipelatoclostridium were enriched among all diets. Lactobacillus and Bifidobacterium were significantly increased in the 24% RPS diet vs. the control diet. When compared with the control diet, the diet with 12% RPS also was found to notably increase acetate, propionate and butyrate contents, and up-regulated barrier-related genes including Claudin-1, Zonula occludens (ZO)-1, mucin-2, and proglucagon of cecum. Furthermore, addition of 12% RPS significantly reduced plasma tumor necrosis factor (TNF)-α, interleukin (IL)-1β, and endotoxin concentrations. These data revealed that diets supplemented with 12% RPS partially improved cecal barrier function in meat ducks by enhancing intestinal morphology and barrier markers expression, modulating the microbiota composition, and attenuating inflammatory markers.