The present invention relates to a process for biorefining waste and lignocellulosic materials aimed at transforming plant waste from agriculture, agroindustrial processes, agri-food industries and the timber industry. The process comprises a first step of reactions between the lignin and the hemicellulose present in the lignocellulosic material and the SO2 in the presence of water in a heterogeneous system to three phases: solid, liquid and gaseous. The main products of these reactions are lignosulfonic acid and xylose, which are dissolved in aqueous phase. With the present invention, lignin conversions greater than 90% are achieved. The process continues with physical separation stages, lignosulfonic acid salt formation reactions, phosphate forming reaction and product purification, achieving the production of cellulose pulp, xylose, solid and dry lignosulfonic acid, alkaline, solid and dry lignosulfonates and calcium phosphate, solid and dry.