Hg2+ contamination is a serious threat to the environment; hence, the development of methods for its trace level detection is urgently required. To contribute in this domain, we report for the first time the application of a highly sensitive and selective colorimetric sensing platform for Hg2+ ions using thiamine-functionalized silver nanoparticles (Th-AgNPs). Upon the addition of Hg2+ ions to the solution, the AgNPs exhibited a noticeable color change from yellow to violet-blue. This color change was monitored by the UV-vis spectrophotometric observation of a significant decrease in the absorption band at 395 nm along with the appearance of a new peak at 550 nm. The designed sensor demonstrated good sensitivity in the concentration range of 1 × 10-8 to 5 × 10-6 M with a detection limit of 5 nM. The sensor also showed high selectivity for Hg2+ when tested in the presence of several competing metal ions. Moreover, the method was found to be applicable to river water samples with satisfactory percentage recoveries. © 2018 The Royal Society of Chemistry and the Centre National de la Recherche Scientifique.