A process for printing or dyeing cellulose-containing textile material with reactive dyes by printing or dyeing the textile material with a foamed, aqueous preparation and fixing the dyes through the action of heat, the preparation containing a reactive dye, a foaming agent, a fixing alkali, a homopolymer or copolymer of acrylamide or methacrylamide or a graft polymer which is obtainable from an addition product of an alkylene oxide onto an at least trihydric aliphatic alcohol having 3 to 10 carbon atoms and acrylamide or methacrylamide, wherein the preparation additionally contains a graft polymer which possesses as grafting base a copolymerization product from (A) an alkyl acrylate or methacrylate, the alkyl radical having at least 8 carbon atoms, with (B) a dicarboxylic acid diester of an ethylenically unsaturated aliphatic dicarboxylic acid and a polyethylene glycol, a terminal hydroxyl group of the glycol having been etherified with a C.sub.1 -C.sub.14 -alkyl radical, and contains as graft constituent side chains which stem from a grafted-on polymerizable monomer which is an ethylenically unsaturated mono- or di- carboxylic acid or a sulfonic acid in each case having at most seven carbon atoms.