The invention provides a method for producing a liquid fuel by using biomass. The liquid fuel is obtained by performing pretreatment, a pyrolytic reaction and a catalytic cracking reaction on the biomass. The biomass is composed of pine needles, bamboo wood, tung tree branches, ginger stems and leaves, Chinese toon branches, sweet potato seedlings, Enteromorpha prolifera, leftovers from a slaughterhouse and the like, wherein the pine needles, the bamboo wood, the tung tree branches, the ginger stems and leaves, the Chinese toon branches and the sweet potato seedlings contain volatile oil, grease, cellulose, lignin and the like; Enteromorpha prolifera contains a large amount of carbohydrates, proteins, crude fibers, fatty acids and the like; and the leftovers from the slaughterhouse are rich in grease. The above biomass raw materials are subjected to the pyrolysis reaction and the catalytic cracking reaction for sufficient conversion, and the obtained liquid fuel is excellent in combustion quality.