There has been extensive research on the sensing of explosive nitroaromatic compounds (NACs) using fluorescent metal-organic frameworks (MOFs). However, ambiguity in the sensing mechanism has hampered the development of efficient explosive sensors. Here we report the synthesis of a hydroxyl-functionalized MOF for rapid and efficient sensing of NACs and examine in detail its fluorescence quenching mechanisms. In chloroform, quenching takes place primarily by exciton migration to the ground-state complex formed between the MOF and the analytes. A combination of hydrogen-bonding interactions and π–π stacking interactions are responsible for fluorescence quenching, and this observation is supported by single-crystal structures. In water, the quenching mechanism shifts toward resonance energy transfer and photo-induced electron transfer, after exciton migration as in chloroform. This study provides insight into florescence-quenching mechanisms for the selective sensing of NACs and reduces the ambiguity regarding the nature of interactions between the MOF and NACs.