In the pulp - making stage of papermaking, whether it is mechanical pulping or chemical pulping, foam is generated. During mechanical pulping, the cutting and friction of fibers cause air to be mixed in, forming foam; during chemical pulping, the reaction between the cooking chemicals and raw materials such as wood also generates foam.