A flame resistant, nontoxic polymer which may be used safely in confined locations where there is inadequate ventilation is prepared either by polymerizing compounds having the formula R-N=P(C6H5)2(C6H4)CH=CH2 where R is an organic moeity selected from the group of (C6H5)2P(O)-, (C6H5O)2P(O)-, (C6H5)2 C3N3-, or their mixtures, or by reacting a polymer with an organic azide such as diphenylphosphinylazide, diphenyl-phosphorylazide, 2-azido-4,6-diphenly-5-triazine, 2,4-diazido-6-phenyl-s-triazine, trimethylsilyoazide, triphenylsilylazine, and phenylazine. The reaction of the styrylphosphine with the organozaide results in the oxidation of the trivalent phosphorus atom to the pentavalent state in the form of an unsaturated P=N linkage known as a phosphazene group