As an abundant natural aromatic polymer, how to realize the high-value utilization of lignin (LA) is still a difficult problem. Herein, a sustainable flame retardant (LA@APP) was synthesized through hydrogen bonding interactions between LA and ammonium polyphosphate (APP), then flame retarded alone epoxy resin (EP/LA@APP). With loading of 6 wt% LA@APP, the LOI of EP/LA@APP6 rose to 27.9 % and achieved UL-94 V0 rating. Meanwhile, EP/LA@APP6 presented a 63.5 % reduction in peak of heat release rate (pHRR) and an 51.3 % decrease in peak of smoke production rate (pSPR). LA@APP could promote the EP composites to form the denser and more continuous expanded charring residuals than APP during the combustion process, effectively shielding the underlying epoxy substrate and thus enhancing fire safety. Additionally, the shell layer of LA@APP, abundant in hydroxyl groups and methoxy groups, effectively improved the compatibility and interfacial interaction with EP. Therefore, the tensile, flexural and impact strength of EP/LA@APP6 reached 50.8 MPa, 86.1 MPa and 7.81 kJ/m2, higher than those of pure EP at 48.3 MPa, 81.5 MPa and 7.45 kJ/m2. This flame retardant with simultaneously enhanced fire safety and mechanical properties of epoxy resin was expected to realize the high-level utilization of lignin.