The aim of this study was to investigate the effect of inulin (IN) supplementation to suckling piglets at and 3 weeks post-weaning. A total of 72 newborn piglets were used. Twenty-four piglets per group received different amounts of IN during the suckling period: (a) CON: no IN; (b) IN-0.5: 0.5 g IN/d on the 1st week, 1 g IN/d on the 2nd week, 1.5 g IN/d on the 3rd week and 2 g IN/d on the 4th week, or (c) IN-0.75: 0.75 g IN/d on the 1st week, 1.5 g IN/d on the 2nd week, 2.25 g IN/d on the 3rd week and 3 g IN/d on the 4th week. Starting at 28 d of age, piglets were weaned and received a post-weaning diet without inulin during the following 3 weeks. At both 28 d and 49 d of age, piglets were euthanised for sampling. Piglets of group IN-0.5 had the highest body weight starting from the 3rd week (p < 0.05), concomitant with the highest villus height and the ratio of villus height/crypt depth in the jejunum and ileum on both sampling days (p < 0.05). At 28 d of age, an increased concentration of propionate, iso-butyrate or total short chain fatty acids was observed between treatment IN-0.5 and the other groups in the caecum or colon (p < 0.05). Moreover, the relative abundance of Escherichia coli (p = 0.05) and Enterobacteriaceae (p = 0.01) in colonic digesta were reduced in IN-0.5-treated piglets, and in both IN-supplemented groups, colonic interleukin-8, tumor necrosis factor-α and toll-like receptor-4 mRNA abundance were decreased compared to the CON group (p < 0.05). However, at 49 d of age, most of these differences disappeared. In conclusion, treatment IN-0.5 improved during the suckling period of piglets development of intestine, but these beneficial effects were not lasting after weaning, when IN supplementation was terminated. Treatment IN-0.75, however, did not display a prebiotic effect.