A bidentate ligand, 1-{4-[4-(1H-1,2,4-triazol-1-yl)phenoxy]phenyl}-1H-1,2,4-triazole (TPPT), has been designed and synthesized. By using TPPT as a building block for self-assembly with Cd(NO3 )2 ⋅4 H2 O and CdCl2 ⋅10.5 H2 O, novel 1D double-chain {[Cd(TPPT)(NO3 )2 ]⋅3 H2 O}n (1) and 2D (4,4) layer [Cd(TPPT)Cl2 (H2 O)]n (2) have been constructed. When 1 was employed as a precursor and exposed to DMF or N,N'-dimethylacetamide (DMAC), the crystals of 1 dissolved and reassembled into two types of brown block-shaped crystals of 1D double chains: {[Cd(TPPT)2 (NO3 )2 ]⋅DMF}n (1 a) and {[Cd(TPPT)2 (NO3 )2 ]⋅DMAC}n (1 b). The anion-exchange reactions of complex 2 have also been investigated. After gently stirring crystals of 2 in CHCl3 /C2 H5 OH/H2 O containing NaBr, NaI⋅2 H2 O, or NaOAc⋅3 H2 O, the crystals retained their crystalline appearances. A remarkable single crystal to single crystal transformation was observed and 1D double chains of {[Cd(TPPT)Br2 ]⋅C2 H5 OH}n (2 a) and {[Cd(TPPT)2 I2 ]⋅CHCl3 }n (2 b), and 1D single chains of [Cd(TPPT)(H2 O)2 (CH3 COO)2 ]n (2 c), can be obtained. Luminescent properties indicate that 1 shows excellent selectivity for Ca(2+) and cyano complexes. To the best of our knowledge, this is the first example of a luminescent probe for Ca(2+) based on triazole derivatives.