The invention provides a method for producing liquid fuel by using biomass, which uses biomass to perform pretreatment, pyrolysis reaction and catalytic cracking reaction to obtain liquid fuel. Among them, biomass is composed of pine needles, bamboo, tung tree branches, ginger leaves, Chinese toon branches, sweet potato seedlings, enteromorpha, slaughterhouse scraps, etc. Seedlings contain volatile oil, grease, cellulose, lignin, etc. Hantai contains a lot of carbohydrates, protein, crude fiber, fatty acids, etc., and the leftovers of slaughterhouses are rich in oil. These biomass raw materials are subjected to pyrolysis and catalytic cracking reactions. Fully converted, the combustion quality of the obtained liquid fuel is excellent.