A pharmaceutical or nutraceutical composition with a core, an inner layer, and an outercoating layer, wherein a pharmaceutical or a nutraceutical active ingredient is contained in the core, at least 30% by weight of a salt of alginic acid is contained in the inner layer, and at least 30% by weight of a polymer or copolymer with anionic side groups is contained in the outer coating layer.