Disclosed is a method for extracting alkaloids from biomaterial, the method comprising the steps of comminuting the biomaterial contacting the biomaterial· with a vegetable oil in the concomitant presence of an alkaline aqueous phase isolating the alkaloid whereby the biomaterial is a plant biomaterial.