Abstract Prebiotics may be efficient for prevention of intestinal infections in humans and animals by increasing the levels of beneficial bacteria and thereby improving gut health. Using purified prebiotics may however not be cost-effective in the livestock production industry. Instead, prebiotic fibres may be released directly in the gastro-intestinal tract by feeding enzymes with a suitable substrate and allowing the prebiotics to be produced in situ. Using low doses, 0.03 % enzyme-to-substrate ratio, of the enzymes pectin lyase and polygalacturonase in combination with potato pulp, a low-value industrial by-product, we show that high molecular weight galacto-rhamnogalacturonan can be solubilized in the stomach of weaning piglets. The release of this fiber is in the order of 22–38 % of the theoretical amount, achieved within 20 min. The catalysis takes place mainly in the stomach of the animal and is then followed by distribution through the small intestines. To our knowledge, this is the first paper describing targeted production of prebiotics in an animal model.