The temperature-dependent structures of 1D and 2D HgCl(2) coordination polymers containing a N-(2-pyridylmethyl)-2-pyrazinecarboxamide flexible ligand with different motifs have been investigated. Results show that when the reaction was carried out at 60 degrees C, a 2D framework containing cubane-like units was generated, whereas in room temperature, L-bridged pentanuclear units, which are extended to a 1D band through a Hg-Cl-Hg-bridged compound, will be obtained.