The present invention relates to a method for providing an isolated biofuel and a purified protein product from a raw material suitable for the production of the biofuel or a derivative of said raw material. The method comprises the steps of: (i) subjecting the raw material or a derivative of said raw material to at least one first treatment liberating the biofuel from the raw material or the derivative of said raw material, (ii) isolating the biofuel liberated in step (i) obtaining the isolated biofuel, (iii) subjecting the raw material or a derivative of said raw material to at least one second treatment providing a material suspension, and (iv) subjecting the material suspension from step (iii) to an expanded bed adsorption process obtaining the purified protein product.