A ratiometric fluorescent nanosensor for biological warfare agent 2,6-pyridinedicarboxylic acid (DPA) detection is developed with carbon dots (CDs)@europium-based nanoscale coordination polymers (Eu-NCPs). The abundant hydroxyl and carboxyl groups of CDs are served as starting points for the spontaneous self-assembly of europium ion (Eu3+) and 5′-guanosine monophosphate disodium (GMP) on the surface of CDs to form CDs@Eu/GMP nanocomposites. The obtained nanosensor exhibits the characteristic emission of CDs and weak emission of Eu3+. The Eu/GMP NCPs are served as the DPA recognition sites. The fluorescence of CDs remains constant as a reference, while the fluorescence of Eu/GMP NCPs is enhanced upon binding with DPA, resulting in ratiometric fluorescent response toward DPA. This ratiometric nanosensor exhibits good selectivity toward DPA detection. The ratio of F615/F469 linearly increases with the increasing of DPA concentration in the range of 25nM–5.0μM with a detection limit as low as 5.1nM. Additionally, the nanosensor is successfully applied for the determination of DPA in the real serum samples.