Strategic valorization of agricultural waste can serve as waste management and promote sustainable biorefineries. Sugarcane bagasse is a readily available lignocellulosic biomass and can be converted into valuable cellulose-based thermoplastics. However, the cellulose purity significantly influences the material properties of the resulting thermoplastics, potentially limiting their applications. Therefore, conventional production necessitates harsh pretreatment of lignocellulose to isolate high-purity cellulose, followed by chemical modification. Here, we demonstrate a facile and green pretreatment method for complete removal of hemicellulose by incubating bagasse in a mixed system of an ionic liquid, 1-ethyl-3-methylimidazolium acetate (EmimOAc), and dimethyl sulfoxide (DMSO) at 140 °C, followed by precipitation in water, achieving >99 % hemicellulose removal. The pretreated bagasse, containing 71 % cellulose and 28 % lignin, underwent homogeneous transesterification with vinyl decanoate and isopropenyl acetate, using EmimOAc as both the solvent and catalyst, assisted by a co-solvent of DMSO. The polysaccharide derivative in the resulting acylated bagasse was separated from the lignin derivative by precipitation in methanol. The obtained polysaccharide derivative with high cellulose purity displayed a high weight-average molar mass of 1.5×106 g mol−1 and a polydispersity of 4. It also exhibited superior thermal stability (thermal degradation temperature, Td−5 %: 359 °C; glass transition temperature, Tg: 144 °C) compared to pulp-derived cellulose acetate decanoate (Td−5 %: 349 °C; Tg: 129 °C).