Pollution of water by heavy metal ions such as Pb2+ and Hg2+ is considered as an important issue, because of the potential toxic effects these ions impose on environmental ecosystems and human health. A new Zn-based metal–organic framework, [Zn2(DPTTZ) (OBA)2] (IUST-2), was synthesized through a solvothermal method by the reaction of 2, 5-di (4- pyridyl) thiazolo [5, 4-d] thiazole ligand (DPTTZ), the “V-shape” 4,4'-oxybis (benzoic acid) ligand (OBA) and zinc nitrate (Zn(NO3)2·6H2O). This novel MOF has been characterized by several analysis techniques such as fourier transform infrared spectroscopy (FT-IR), elemental analysis (EA), powder x-ray diffraction (PXRD), thermogravimetry analysis (TGA), differential thermal analysis (DTA), field emission scanning electron microscopy (FE-SEM), Brunauer–Emmett–Teller (BET) surface area analysis and single-crystal X-ray diffraction (SXRD). This 3D MOF was tested for removing Pb2+ and Hg2+ ions from water. The factors that were investigated on the elimination of Pb2+ and Hg2+ ions were of pH, adsorption time, and the effect of initial ions concentration. According to the results, this particular Zn-MOF had significant performance in eliminating Pb2+ and Hg2+ ions from water with a removal efficiency of more than 97% and 87% within 3 min, respectively.