A hydrogen bond assisted azine-linked covalent organic framework, COF-JLU3, was synthesized under solvothermal conditions. Combining excellent crystallinity, porosity, stability and luminescence, it can be the first COF as a fluorescent sensor for toxic metal ions, exhibiting high sensitivity and selectivity to Cu(2+).