In this paper,we designed Eu2+-doped BaAlF5 and BaSiF6 downconversion nanophosphors with strong f-f transition emission to realize the quantitative detection of TNP.The surface of the as-prepared nanophosphors was modified by polyethylenimine (PEI) to increase the water solubility and to pro-vide a pair of electrons to bind to the benzene ring in TNP,forming a Meisenheimer complex.The detection principle of TNP is based on luminescence resonance energy transfer (LRET) technology,where the PEI-functionalized BaAlF5∶Eu2+ and BaSiF6∶Eu2+ nanophosphors are used as energy donors and TNP is an energy acceptor.With increasing TNP concentrations,the luminescence intensity of the BaAlF5∶Eu2+ and BaSiF6∶Eu2+ nanophosphors at 359 nm[4f7(6p7/2)→4f7(8S7/2) transition of Eu2+]dis-plays dramatic luminescent quenching.The BaAlF5∶Eu2+@PEI or BaSiF6∶Eu2+@PEI nanophosphor downconversion luminescent sensors show great sensitivity and selectivity and good linearity,and the detection limits of TNP are 0.57 and 2.82 ng/mL,respectively.