A hybrid mesoporous material functionalized by 1,8-naphthalimide-base receptor and the application as chemosensor and absorbent for Hg2+ in water.