Two lanthanide coordination polymers [Gd(L)(3)H2O](n) (1) and [Nd(L)H2O](n) (2) were hydrothermally synthesized by reaction of flexible nitrogen-containing carboxylate ligand 2-(1H-1,2,4-triazol-1-yl)acetic acid (HL) with lanthanide oxides and characterized by elemental analysis, IR and single crystal X-ray diffraction structure analysis. The crystal structures showed that two complexes belong to triclinic, space group P (1) over bar with 1D chain structure. The crystallographic data complex 1: a=0.882 41(13) nm, b=0.986 58(14) nm, c=1.100 81(16) nm, alpha=81.352(2)degrees, beta=87.168(2)degrees, gamma=76.563(2)degrees, Z=2, r=0.035 8, wR(2)=0.0653; the crystallographic data of complex 2: a=0.882 41(13) nm, b=0.986 58(14) nm, c=1.10081(16) nm, alpha=81.352(2)degrees, beta=87.352(2)degrees, Z=2, R=0.0268, wR(2)=0.0602. CCDC: 703673, 2.