A method is proposed for obtaining a promising cellulosecontaining oil sorbent based on the buckwheat shell and millet shell, suggesting its modification by compounds structuring the polymer followed by heat treatment. These modification methods contribute to the creation of carbon structures with controlled porosity, as well as an increase in the yield of carbonized structures after heat treatment. Sorption properties of materials based on modified plant raw materials are investigated.