The present invention relates to a new method for preparing diesel fuel or aviation kerosene range hydrocarbons by using isophorone, 3,3,5-trimethyl cyclopentanol, 3,3,5-trimethyl cyclopentanone, 2-ethyl-2-hexenal, 2-ethyl-2-hexanol, 2-ethyl-2-hexanal, fatty acids, fatty acid methyl (or ethyl) esters, a biomass fatty acid triglyceride and other oxygen-containing organic compounds obtained from biomasses as raw materials through a hydrodeoxygenation reaction. According to the present invention, the direct low-temperature hydrodeoxygenation of the biomass oxygen-containing organic compound under the solvent-free condition is achieved, and a series of the high-yield chain alkanes or cycloalkanes having the diesel fuel or aviation kerosene chain length range are obtained; and the catalyst of the present invention has characteristics of no requirement of solvent, simple operation process, mild reaction conditions, good aviation kerosene (or diesel fuel) selectivity, and the like, and is the ideal catalyst for preparation of the diesel fuel or aviation kerosene range hydrocarbon fuels through the hydrodeoxygenation of the biomass oxygen-containing organic compound.