The invention is suitable for the field of biomass energy, and provides a method for producing biodiesel by means of a lignocellulose material. The method comprises the steps that pretreatment is conducted on the lignocellulose material through an alkali-glycerin-methanol mixed solution produced in the process that the biodiesel is prepared by conducting single-step base catalysis transesterification on microbial lipid; after in-situ evaporation is conducted on the raw material, and methanol is subjected to condensation recovery, water is added to reach the proper solid-to-liquid ratio, after acid neutralization is conducted, an appropriate number of enzymes are added for hydrolysis, solid-liquid separation is conducted, and hydrolysate is obtained; oleaginous yeast is introduced and synthesizes lipid by means of carbohydrates and glycerin in the hydrolysate; microbial thalli containing oil are collected, intracellular lipid is extracted, the biodiesel is prepared through single-step base catalysis transesterification, n-hexane is added for extraction, the biodiesel is obtained on the upper layer, the alkali-glycerin-methanol solution is obtained on the lower layer, and the alkali-glycerin-methanol solution is recycled for pretreating lignocellulose. According to the method for producing the biodiesel by means of the lignocellulose material, strong alkali, by-product glycerin and methanol are used for pretreating the lignocellulose; meanwhile, the glycerin further serves as a carbon source of oleaginous microorganisms to be subjected to in-situ integration recycling, the cost is greatly reduced, and the significant economic benefit is achieved.