A series of isomorphic lanthanide metal-organic frameworks (MOFs) Ln(TATAB)⋅(DMF) (H O)(MeOH) (LnTATAB, Ln=Eu, Tb, Sm, Dy, Gd; H TATAB=4,4',4''-s-triazine-1,3,5-triyltri-p-aminobenzoic acid) have been solvothermally synthesized and structurally characterized. Among these MOFs, TbTATAB exhibits good water stability and a high fluorescence quantum yield. Because mercury ions (Hg ) have a high affinity to nitrogen atoms, and the space between multiple nitrogen atoms from triazine and imino groups is suitable for interacting with Hg ions, TbTATAB shows highly selective and sensitive detection of Hg in aqueous solution with a detection limit of 4.4 nm. Furthermore, it was successfully applied to detect Hg ions in natural water samples.