Abstract: The present invention relates to phosphorus-containing triazine compounds of the formula (I) and (III) and to the polymers obtainable from the water-eliminating polycondensation of a compound of the formula (II), and to the use thereof as flame retardants. [(A-H)+]m[Mm+(HPO42?)m]??(III-1), [(A-H)+]m[Mm+(P2O74?)m/2]??(III-2).