Two types of Zn–Ln nanoclusters (Ln = Nd and Sm) were constructed using one long Schiff base ligand with a naphthyl backbone, and the 12-metal Zn–Sm cluster shows interesting visible and NIR luminescence sensing of nitro explosives with high sensitivity to 1,4-DNB and TNT at the ppb level.