The present study focuses on using apricot seeds shells and walnut shells as a potential renewable material for biorefinery in Ukraine. The goal of the research work was to determine the relationship between the chemical composition of solid residues from biomass after acid pretreatment with H2SO4, alkaline pretreatment with NaOH, and a steam explosion pretreatment and the recovery of sugars and lignin after further enzymatic hydrolysis with the application of an industrial cellulase Cellic CTec2. Apricot seeds shells and walnut shells consist of lots of cellulose (35.01 and 24.19%, respectively), lignin (44.55% and 44.63%, respectively), hemicelluloses (10.77% and 26.68%, respectively), and extractives (9.97% and 11.41%, respectively), which affect the efficiency of the bioconversion of polysaccharides to sugars. The alkaline pretreatment was found to be more efficient in terms of glucose yield in comparison with that of acid and steam explosion, and the maximum enzymatic conversions of cellulose reached were 99.7% and 94.6% for the solids from the apricot seeds shells and the walnut shells, respectively. The maximum amount of lignin (82%) in the residual solid was obtained during the processing of apricot seed shells submitted to the acid pretreatment. The amount of lignin in the solids interferes with the efficiency of enzymatic hydrolysis. The results pave the way for the efficient and perspective utilization of shells through the use of inexpensive, simple and affordable chemical technologies, obtaining value-added products, and thus, reducing the amount of environmental pollution (compared to the usual disposal practice of direct burning) and energy and material external dependency (by taking advantage of these renewable, low-cost materials).