A process for producing liquid hydrocarbon products from a solid feedstock comprising a biomass feedstock containing lignocellulose and/or a residual waste feedstock, said process comprising the steps of: a) a first stage of hydropyrolysing the solid feedstock in a hydropyrolysis reactor vessel in the presence of molecular hydrogen and one or more deoxygenation catalysts, producing a product stream comprising partially deoxygenated hydropyrolysis product, H 2 O, H 2 , CO 2 , CO, C 1 - C 3 gases, char and catalyst fines; b) removing said char and catalyst fines from said product stream; c) a second stage of hydroconverting said partially deoxygenated hydropyrolysis product in a hydroconversion reactor vessel in the presence of one or more hydroconversion catalysts and of the H 2 O, CO 2 , CO, H 2 , and C 1 - C 3 gas generated in step a), producing a vapour phase product comprising substantially fully deoxygenated hydrocarbon product, H 2 O, CO, CO 2 , and C 1 - C 3 gases; d) condensing the vapour phase product of step d) to provide a liquid phase product comprising substantially fully deoxygenated C4+ hydrocarbon liquid and aqueous material and separating said liquid phase product from a gas phase product comprising H 2 , CO, CO 2 , and C 1 - C 3 gases; e) removing the aqueous material from the substantially fully deoxygenated C4+ hydrocarbon liquid; and f) a third stage comprising combining an aliphatic hydrocarbon precursor or an aromatic hydrocarbon precursor with at least a portion of the substantially fully deoxygenated C4+ hydrocarbon liquid and co-processing the resultant liquid in a hydroprocessing reactor vessel in the presence of hydrogen and one or more hydroprocessing catalysts wherein the aliphatic hydrocarbon precursor comprises one or more materials selected from triglyceride-containing components, algal oils, algal lipids, crude tall oil from pulp and paper production, mono- and diglycerides, free fatty acids, alkyl esters of fatty acids and greases; wherein the aromatic hydrocarbon precursor comprises one or more materials selected from pyrolysis gasoline (pygas), FCC gasoline, coker naphtha and oxygenated hydrocarbons derived from lignin depolymerisation; and wherein 'substantially fully deoxygenated' describes material in which at least 90wt% of the oxygen present in the original lignocellulose containing biomass has been removed. a) a first stage of hydropyrolysing the solid feedstock in a hydropyrolysis reactor vessel in the presence of molecular hydrogen and one or more deoxygenation catalysts, producing a product stream comprising partially deoxygenated hydropyrolysis product, H 2 O, H 2 , CO 2 , CO, C 1 - C 3 gases, char and catalyst fines; b) removing said char and catalyst fines from said product stream; c) a second stage of hydroconverting said partially deoxygenated hydropyrolysis product in a hydroconversion reactor vessel in the presence of one or more hydroconversion catalysts and of the H 2 O, CO 2 , CO, H 2 , and C 1 - C 3 gas generated in step a), producing a vapour phase product comprising substantially fully deoxygenated hydrocarbon product, H 2 O, CO, CO 2 , and C 1 - C 3 gases; d) condensing the vapour phase product of step d) to provide a liquid phase product comprising substantially fully deoxygenated C4+ hydrocarbon liquid and aqueous material and separating said liquid phase product from a gas phase product comprising H 2 , CO, CO 2 , and C 1 - C 3 gases; e) removing the aqueous material from the substantially fully deoxygenated C4+ hydrocarbon liquid; and f) a third stage comprising combining an aliphatic hydrocarbon precursor or an aromatic hydrocarbon precursor with at least a portion of the substantially fully deoxygenated C4+ hydrocarbon liquid and co-processing the resultant liquid in a hydroprocessing reactor vessel in the presence of hydrogen and one or more hydroprocessing catalysts <EOS>