Pathogenic fungus Penicillium oxalicum sp. 68 was screened from soil and identified by ITS sequencing. The strain was found to be able to transform protopanaxadiol-type ginsenosides to produce a series of bioactive metabolites. Glycosidase from the culture of P. oxalicum sp. 68 was partially purified with a simple two-step procedure consisting of DEAE-cellulose chromatography and ammonium sulfate precipitation. Bioactive ginsenoside Compound K was prepared selectively and efficiently by biotransformation of ginsenosides Rb1, Rb2, Rc and Rd using the partially purified glycosidase. The optimal conditions for transforming Rb1 into Compound K were pH 4.0, 55 °C and 0.5 mg mL −1 Rb1. The sole product is Compound K and the maximum yield reached 87.7 % (molar ratio). The transformation pathways of Rb1, Rb2, Rc and Rd are Rb1→Rd→F2→Compound K, Rb2→CO→CY→Compound K, Rc→Mb→Mc→Compound K and Rd→F2→Compound K, respectively. This biotransformation method showed great potential for preparing minor bioactive ginsenosides, especially Compound K, in the pharmaceutical industry because of its high specificity and favorable environmental compatibility.