From the perspective of sustainable development and practical applications, there is a significant demand for the design of advanced cellulose-based film materials with superior mechanical, optical, and functional properties utilizing environmentally friendly strategies. Herein, biodegradable, mechanically robust and flame-retardant cellulose films with adjustable optical performance were successfully fabricated by in situ synthesis of NH