Based on an organic ligand involving both carboxylate and tetrazole groups, a chemically stable Zn(II) metal-organic framework has been rationally synthesized and behaves as a fluorescence chemosensor for the highly selective and sensitive detection of picric acid, an extremely hazardous and strong explosive.