The invention relates to a method for treating pulp useful for papermaking, in which method pulp is treated with a swollenin protein in connection with a mechanical treatment in a pulping and/or papermaking process. The invention also relates to pulp prepared by the method and paper made thereof. The invention further relates to use of swollenin for enhancing refining/beating of pulp useful for papermaking and for improving the end product properties of paper.