With nano-dimension, high aspect ratio, and high mechanical properties, cellulose nanofibrils (CNFs) are emerging sustainable nanomaterials with potential applications in films and composites. However, their preparation often involves a series of chemical treatments such as delignification, bleaching and harsh chemical pretreatments, and treats lignin as waste. Herein, we report a sustainable method to prepare high-quality lignincontaining cellulose nanofibrils (LCNFs) from bamboo chips, using a one-step maleic anhydride esterification treatment without any toxic organic solvent or catalyst. The resultant LCNFs have high lignin content (24%), high surface charge (2.25 mmol/g), fine diameter (similar to 2.5 nm), and high aspect ratio (>400). These superior properties can be translated into the corresponding nanopaper films with high optical transmittance (85% at 600 nm), UV shielding (