In the study,nitrogencontaining phenolic resin was synthesized using bisphenol A,formaldehyde and melamine as monomers.This resin was used as curing agent of epoxy resins.as to enhance flameresistance of cured compound.Both the electric property and flameresistance of epoxy cured were very excellent.