Resistant starch (RS) was recently approved to exert a powerful influence on gut health, but the effect of RS on the caecal 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 caecum for meat ducks was determined. A total of 360 Cherry Valley male ducks of 1-d-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 caecum. 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 in all diets. Lactobacillus and Bifidobacterium were significantly increased in the 24 % RPS diet v. the control diet. When compared with the control diet, the diet with 12 % RPS was also found to notably increase acetate, propionate and butyrate contents and up-regulated barrier-related genes including claudin-1, zonula occludens-1, mucin-2 and proglucagon in the caecum. Furthermore, the addition of 12 % RPS significantly reduced plasma TNF-α, IL-1β and endotoxin concentrations. These data revealed that diets supplemented with 12 % RPS partially improved caecal barrier function in meat ducks by enhancing intestinal morphology and barrier markers expression, modulating the microbiota composition and attenuating inflammatory markers.