A process for producing hydrocarbon fuels from biomass, the process comprising: (a) hydrotreating biomass at hydrotreatment reaction conditions to produce a hydrotreatment product comprising a deoxygenated hydrocarbon product including gasoline and diesel boiling-point range fractions, said hydrotreating comprising: hydropyrolyzing the biomass in a reactor containing molecular hydrogen and a deoxygenating and hydrogen addition catalyst at hydropyrolysis reaction conditions to produce a deoxygenated hydrocarbon hydropyrolysis product comprising char and vapors; separating at least 95 percent of said char and particles from said deoxygenated hydrocarbon hydropyrolysis product to produce an at least 95 percent char and particle-free hydropyrolysis product; (b) separating each of said gasoline and diesel boiling-point range fractions from said hydrotreatment product and each other; (c) upgrading said separated gasoline and diesel boiling-point range fractions, wherein said separated gasoline boiling-point range fraction is catalytically upgraded at catalytic gasoline upgrade conditions to form an upgraded gasoline product, and wherein said separated diesel boiling-point range fraction is treated to produce an ultra-low sulfur diesel product, the treatment comprising treating the separated diesel boiling-point range fraction in an ultra-low sulfur diesel trickle-bed reactor wherein the ultra-low sulfur diesel trickle-bed reactor produces a product stream comprising primarily ultra-low sulfur diesel and some residual gasoline, said process additionally comprising separating at least a portion of said residual gasoline from said ultra-low sulfur diesel. (a) hydrotreating biomass at hydrotreatment reaction conditions to produce a hydrotreatment product comprising a deoxygenated hydrocarbon product including gasoline and diesel boiling-point range fractions, said hydrotreating comprising: hydropyrolyzing the biomass in a reactor containing molecular hydrogen and a deoxygenating and hydrogen addition catalyst at hydropyrolysis reaction conditions to produce a deoxygenated hydrocarbon hydropyrolysis product comprising char and vapors; separating at least 95 percent of said char and particles from said deoxygenated hydrocarbon hydropyrolysis product to produce an at least 95 percent char and particle-free hydropyrolysis product; hydropyrolyzing the biomass in a reactor containing molecular hydrogen and a deoxygenating and hydrogen addition catalyst at hydropyrolysis reaction conditions to produce a deoxygenated hydrocarbon hydropyrolysis product comprising char and vapors; separating at least 95 percent of said char and particles from said deoxygenated hydrocarbon hydropyrolysis product to produce an at least 95 percent char and particle-free hydropyrolysis product; (b) separating each of said gasoline and diesel boiling-point range fractions from said hydrotreatment product and each other; (c) upgrading said separated gasoline and diesel boiling-point range fractions, wherein said separated gasoline boiling-point range fraction is catalytically upgraded at catalytic gasoline upgrade conditions to form an upgraded gasoline product, and wherein said separated diesel boiling-point range fraction is treated to produce an ultra-low sulfur diesel product, the treatment comprising treating the separated diesel boiling-point range fraction in an ultra-low sulfur diesel trickle-bed reactor wherein the ultra-low sulfur diesel trickle-bed reactor produces a product stream comprising primarily ultra-low sulfur diesel and some residual gasoline, said process additionally comprising separating at least a portion of said residual gasoline from said ultra-low sulfur diesel.