ABSTRACT Riemerella anatipestifer (RA) infection causes high mortality and poor feed conversion, leading to great economic losses to the duck industry. This study investigated the effects of RA on the intestinal morphology and immune response of ducks. Histological examination showed that RA infection caused intestinal injury, including significantly reduced mucosal thickness on days 2, 3 and 5, significantly reduced villus height on days 1, 2, 3 and 5 (P < 0.05) and significantly reduced villus height to crypt depth ratios on days 2, 3, 5 and 9 of RA infection (P < 0.05). The expression of intestinal mucosal layer construction-associated genes and tight junction genes was significantly altered on at least one time point (day 1, 2, 3, 5, 9 or 14) after RA infection. Quantitative real-time polymerase chain reaction revealed that RA infection affected intestinal mucosal immune function. The genes encoding TLR4 (toll like receptor-4), TRAF6 (TNF receptor-associated factor 6), MYD88 (myeloid differentiation factor 88), IFN-γ (interferon-γ), IL (interleukin)-4 and IL-8 were significantly upregulated on day 2 of RA infection. Taken together, these results indicate that RA infection negatively affects intestinal barrier function in ducks due to impaired mucosal and villus-crypt structure and alters the mRNA expression of mucous layer construction-, intestinal tight junction-, and intestinal mucosal immunity-related genes.