The invention provides an anti-flaming viscose. Melamine is grafted on the viscose, so that the viscose has fire resistance. A method for preparing the anti-flaming viscose by grafting melamine with an oxidized viscose comprises the following steps: (1) preparing a pretreated viscose, adding the viscose into a sodium hydroxide solution, reacting while boiling, taking out after reaction, cleaning,drying and standing by; (2) preparing the oxidized viscose, dispersing the pretreated viscose into a dilute nitric acid solution, stirring, aerating and performing oxidizing reaction, taking out the fiber after the ending of reaction, washing, drying and standing by; (3) preparing a melamine ethanol solution, using diluted hydrochloric acid for regulating pH to 4-5.5, preparing a N,N'-dicyclohexylcarbodiimide ethanol solution, adding the melamine ethanol solution into a reaction vessel, dispersing the oxidized viscose into the melamine ethanol solution, stirring and aerating, adding the N,N'-dicyclohexyl carbodiimide ethanol solution in batches, and reacting under a constant temperature. The oxygen index of the acquired product can reach up to 32-40%.