The present invention relates to a method for providing a fiber-containing pectin product from a plant material. The method comprises the steps of: (i) providing a plant material comprising pectin, where said pectin is having a degree of esterification of 55% or less, (ii) adding an acidic aqueous solution to the pectin containing plant material obtained in step (i) and providing a suspension of the plant material, where the suspended plant material provides an in situ system by swelling the plant material under conditions where the pectin is kept within the plant material, and (iii) obtaining the fiber-containing pectin product from the suspension provided in step (ii), wherein the plant material is substantially depleted from divalent cations.