A method for the heterogeneous modification of nanofibrillar cellulose in aqueous media.