Designing highly-effective and environmentally friendly biobased flame-retardant plasticizers for polylactic acid (PLA) remains a formidable challenge. In this study, we synthesized four novel phosphorus-nitrogen-containing L-lactic acid-based flame-retardant plasticizers with adjustable chemical structures and phosphorus content, designated as NPDL-Cn, where ’n’ corresponds to the alkyl groups numbers in the alkylamine chain (with n = 4, 6, 8, and 10). Incorporating NPDL-Cn into the PLA matrix offered a twofold benefit, significantly enhancing both the flame retardancy and toughness of PLA. Remarkably, as incorporating 20 phr NPDL-Cn, the resulting blends all achieved UL-94 V-0 grade, and their limiting oxygen index reached about 30.8 %, 29.5 %, 28.3 % and 27.2 %, respectively. A comprehensive analysis of the volatile gases and char layer generated during combustion showed that the flame-retardant mechanism of NPDL-Cn in PLA significantly influenced both the condensed-phase and gas-phase behavior. Meanwhile, NPDL-Cn effectively overcame the brittleness and rigidity of PLA, thus realizing the enhancement of its toughness. In particular, as compared to a mere 3.7 % and 1.7 MJ/m3 for neat PLA, when the methylene numbers of NPDL-Cn were 4, the elongation at break and tensile toughness of the PLA/NPDL-C4 exhibited a substantial increase to 180.1 % and 43.4 MJ/m3, respectively, due to the best interfacial tension of NPDL-C4 with PLA matrix. Additionally, while the tensile strength of neat PLA is notably high at 50.7 MPa, the introduction of PLA/NPDL-C4 results in a significant decrease to 26.3 MPa. Interestingly, biodegradation experiments showed that NPDL-C4 was decomposed into non-toxic and harmless small molecules. This study presents a method for constructing toughened and flame-retardant PLA blends by modulating the alkyl chain length of flame-retardant plasticizers and elucidating their structure–property relationships.