In this work, a new thiazol derivative, N2, N6-di (thiazol-2-yl) pyridine-2, 6-dicarboxamide (DPD), was synthesized via reaction of 2-aminothiazole and 2, 6- pyridinedicarboxylic acid in n-methylpyrrolidine. The synthesized DPD was characterized with different techniques such as nuclear magnetic resonance spectroscopy (NMR), Fourier transform infrared spectroscopy (FT-IR), and elemental analysis. After structural characterization, DPD was successfully used for removal of Cd2+and Zn2+ions from industrial wastes and the effects of several parameters such as pH, possible interfering ions, contact time, concentration of target ions, background electrolytes, and temperature on the adsorption of Cd2+ and Zn2+ ions were investigated. The maximum adsorption capacities of Cd2+ and Zn2+ were found to be 128.21 and 90.09 mg.g-1, respectively. The required times for quantitative removal of Cd2+ and Zn2+ were 30 and 45 min, respectively. In addition, the equilibrium isotherms for the adsorption Cd2+ and Zn2+ ions on the DPD surface were analyzed using the Langmuir and Freundlich models. The obtained results show that adsorption isotherm data for Cd2+ and Zn2+ ions are consistently better with Langmuir than Freundlich isotherms. Appropriate characteristics of the DPD such as high adsorption capacity, stability, reusability, and easy synthesis make it suitable adsorbent for removal of Cd2+ and Zn2+ ions from industrial wastes.