ABSTRACT: Hg and Cd are the two most toxic heavy metal ions that could be found in aqueous solutions. In this study, a chemosensor based on 5-(4-((4-nitrophenyl) diazenyl) phenyl)-1,3,4-oxadiazole-2-thiol (DOT) was reported to detect these ions simultaneously. DOT showed high selectivity towards Hg ion by changing the color of the solution from beige to gold-yellow at different concentrations of Hg ion. In comparison, other relevant metals, such as Li+, Na+, K+, Cs+, Mg2+, Ca2+, Al3+, Fe2+, Ag+, Cu2+, Pb2+, Ni2+, Zn2+, Cr3+, Fe3+, Pb4+, Mn2+, and Cd2+ did not affect the color of the DOT solution as the in