Method for fractionation of a lignocellulosic material, the method comprising a) Subjecting the lignocellulosic material to a delignification treatment in the presence of an alkaline delignification agent to produce a mixture comprising a first solid phase and a first liquid phase containing dissolved lignin, wherein the alkaline delignification agent is added to the lignocellulosic material to obtain a suspension having a pH of above 7, b) Separating the first solid phase from the first liquid phase, c) Introducing a cationic compound into the first liquid phase to produce a mixture comprising a second solid phase and a second liquid phase and wherein the second liquid phase is separated from the second solid phase and the second liquid phase is recycled to step a), d) Subjecting the first solid phase to an enzymatic hydrolysis treatment in the presence of enzymes capable of hydrolysing the hemicellulose and cellulose fractions of the first solid phase to produce a mixture comprising third liquid phase in the form of an enzymatic hydrolysate and a third solid phase, e) Separating the third liquid phase from the third solid phase, and wherein the cationic compound is selected from a group comprising cationic polymers and oligomers such as cationic starch polysaccharides, cationic amylose, cationic amylopectin, cationic dextran, cationic lignin oligomers, cationic lignin polymers, cationic peat, or mixtures thereof, or wherein the cationic compound is an elemental cationic ion selected from the group comprising alkaline earth metals and bivalent and trivalent cations of iron (Fe) or aluminium (Al) derived from compounds such as AlCl 3 aluminum chloride, Ba(C 2 H 3 O 2) 2 barium acetate, Ba(HCO 3) 2 barium bicarbonate, BaBr 2 barium bromide, BaCl 2 barium chloride, Ba(HCO 2) 2 barium formate, (Ba 2 barium hydroxide), Ba(NO 3) 2 barium nitrate, Ca(C 2 H 3 O 2) 2 calcium acetate, Ca(HCO 3) 2 calcium bicarbonate, CaBr 2 calcium bromide, CaCl 2 calcium chloride, Ca(HCO 2) 2 calcium formate, (Ca 2 calcium hydroxide), Ca(NO 3) 2 calcium nitrate, Mg(C 2 H 3 O 2) 2 magnesium acetate, Mg(HCO 3) 2 magnesium bicarbonate, MgBr 2 magnesium bromide, MgCl 2 magnesium chloride, Mg(HCO 2) 2 magnesium formate, (Mg 2 magnesium hydroxide), Mg(NO 3) 2 magnesium nitrate, Fe(C 2 H 3 O 2) 2 iron acetate, FeCl 3 ferric chloride, and the corresponding hydrates. a) Subjecting the lignocellulosic material to a delignification treatment in the presence of an alkaline delignification agent to produce a mixture comprising a first solid phase and a first liquid phase containing dissolved lignin, wherein the alkaline delignification agent is added to the lignocellulosic material to obtain a suspension having a pH of above 7, b) Separating the first solid phase from the first liquid phase, c) Introducing a cationic compound into the first liquid phase to produce a mixture comprising a second solid phase and a second liquid phase and wherein the second liquid phase is separated from the second solid phase and the second liquid phase is recycled to step a), d) Subjecting the first solid phase to an enzymatic hydrolysis treatment in the presence of enzymes capable of hydrolysing the hemicellulose and cellulose fractions of the first solid phase to produce a mixture comprising third liquid phase in the form of an enzymatic hydrolysate and a third solid phase, e) Separating the third liquid phase from the third solid phase, and wherein the cationic compound is selected from a group comprising cationic polymers and oligomers such as cationic starch polysaccharides, cationic amylose, cationic amylopectin, cationic dextran, cationic lignin oligomers, cationic lignin polymers, cationic peat, or mixtures thereof, or wherein the cationic compound is an elemental cationic ion selected from the group comprising alkaline earth metals and bivalent and trivalent cations of iron (Fe) or aluminium (Al) derived from compounds such as AlCl 3 aluminum chloride, Ba(C 2 H 3 O 2) 2 barium acetate, Ba(HCO 3) 2 barium bicarbonate, BaBr 2 barium bromide, BaCl 2 barium chloride, Ba(HCO 2) 2 barium formate, (Ba 2 barium hydroxide), Ba(NO 3) 2 barium nitrate, Ca(C 2 H 3 O 2) 2 calcium acetate, Ca(HCO 3) 2 calcium bicarbonate, CaBr 2 calcium bromide, CaCl 2 calcium chloride, Ca(HCO 2) 2 calcium formate, (Ca 2 calcium hydroxide), Ca(NO 3) 2 calcium nitrate, Mg(C 2 H 3 O 2) 2 magnesium acetate, Mg(HCO 3) 2 magnesium bicarbonate, MgBr 2 magnesium bromide, MgCl 2 magnesium chloride, Mg(HCO 2) 2 magnesium formate, (Mg 2 magnesium hydroxide), Mg(NO 3) 2 magnesium nitrate, Fe(C 2 H 3 O 2) 2 iron acetate, FeCl 3 ferric chloride, and the corresponding hydrates.