A phosphorusnitrogen containing compound, N-(2-(5,5-dimethyl-1,3,2-dioxaphosphinyl-2-ylamino)-hexylacetamide-2-propyl acid (PAHPA), is synthesized and characterized. A novel flame retardant, namely layered double hydroxides (LDHs) modified with PAHPA (PAHPA-LDHs), is prepared by ion-exchange of LDHs with PAHPA. The results from Fourier transform infrared spectroscopy, X-ray photoelectron spectroscopy and energy dispersive X-ray analysis with a high-angle annular dark-field scanning transmission electron microscope show that PAHPA intercalated LDHs. The X-ray diffraction and transmission electron microscopy (TEM) results show that PAHPA-LDHs achieve well dispersion in ethylene vinyl acetate copolymer (EVA) matrix and the EVA/PAHPA-LDHs nanocomposites (i.e. EVA filled with 5wt% PAHPA-LDHs) are formed by polymer melt intercalation. Thermal stability and flammability properties are investigated by thermogravimetric analysis and cone calorimeter tests. The results show that the addition of PAHPA-LDHs improves thermal stability and reduces obviously the flammability of EVA resin. Compared with pure EVA resin, the peak heat release rate of the EVA/PAHPA-LDHs nanocomposites is reduced by about 43%. The results of scanning electron microscopy and TEM indicate that a compact and dense intumescent char is formed for the EVA/PAHPA-LDHs nanocomposites after combustion.