In this work, we developed soft and highly stable perfluorocarbon-free foams based on cellulose nanofibres (CNFs), cellulose nanocrystals (CNCs) and alkyl polyglycoside (APG). Neither the CNCs nor the CNFs can effectively stabilise the APG foam, which is reflected in the spontaneous degradation of the foam. Interestingly, blending these two nanocelluloses and foaming resulted in an ultrastable foam. The reflective optical interference technique was used to visualise liquid flow in the liquid film, and the results showed that the foam film with a thickness of only a few tens of nanometres gained excellent mechanical stability by tuning the assembly of CNCs and CNFs at the air–liquid interface. Moreover, the interfibril interactions at the Plateau borders reduce the bubble coarsening rate and drainage rate. In pool fire extinguishing tests, increasing the total concentration of CNCs and CNFs improved the foam stability, but increasing the viscosity led to a decrease in the foam spreading rate. Thus, a formulation with 0.4 % nanocellulose has poorer firefighting performance than a formulation with 0.15 % nanocellulose. When the ratios of CNCs and CNFs are properly controlled, the burnback performance of perfluorocarbon-free foam is better than that of state-of-the-art fluorinated AFFFs for n-heptane pool fires. The sustainability of the firefighting process is considerably improved by switching to the nonperfluorinated liquid foam developed in this work.