Two new coordination polymers, namely [Mn(µ3-5-nip)(1-meim)2(H2O)]n (1) and {[Co(µ-5-nip)(1-meim)3]•H2O}n (2) (5-nip: 5-nitroisophthalate, 1-meim: 1-methylimidazole), were hydrothermally synthesized and characterized by FTIR spectroscopy, elemental analysis, single crystal X-ray diffraction, and simultaneous thermal analysis techniques. The 5-nip ligand exhibited two different coordination modes in its structures. In 1 and 2, 1D chains were generated by 5-nip ligands and metal(II) ions. In 1 and 2, 5-nip ligand coordinated to three Mn(II) and two Co(II) ions as bis(monodentate) bridging mode and a monodentate and bidentate chelating modes, respectively. For 1 and 2, 2D supramolecular layers were formed by hydrogen bonds which were extend into 3D supramolecular structures via π•••π stacking interactions between two symmetry-related imidazole rings of neighboring molecules. Furthermore, optical and thermal properties of the complexes were also studied.