A flame-retardant polyester fiber obtained by spinning flame-retardant polyester and irradiating with ultraviolet light and having a limiting oxygen index value of greater than 30. Flame retardant 2-carboxyethylphenylphosphinic acid to improve the flame retardant properties of polyester, the use of polyester containing unsaturated double bond in UV irradiation, the double bond opens to form a crosslinking point, the formation of a certain amount of the network structure improves the heat-resistant temperature of the poly-fiber and improves the anti-dripping performance of the polyester fiber.