A cyclam-based fluorescent sensor featuring a novel triazole pendant arm has been synthesised using click chemistry. The sensor is highly responsive to both Cu(II) and Hg(II) in neutral aqueous solution and displays excellent selectivity in the presence of various competing metal ions in 50-fold excess. The addition of specific anions such as I(-) and S(2)O(3)(2-) causes a complete revival of fluorescence only in the case of Hg(II), providing a simple and effective method for distinguishing solutions containing Cu(II), Hg(II) or a mixture of both ions, even in doped seawater samples. X-ray crystal structures of both the Hg(II) sensor complex and a model Cu(II) complex show that pendant triazole coordination occurs through the central nitrogen atom (N2), providing to the best of our knowledge the first reported examples of this unusual coordination mode in macrocycles. Fluorescence, mass spectrometry and (1)H NMR experiments reveal that the mechanism of anion-induced fluorescence revival involves either displacement of pendant coordination or complete removal of the Hg(II) from the macrocycle, depending on the anion.