Acylhydrazone-based fluorescent conjugated microporous polymers (CMPs) with inter-and intra-hydrogen bonding-controlled emissive properties were prepared. The synthesized CMPs (BH-CMP and ABH-CMP) were characterized by Fourier-transform infrared spectroscopy, X-ray diffraction, solid-state 13C cross polarization/magic angle spinning nuclear magnetic resonance spectroscopy, and photoluminescence spectroscopy. Interestingly, BH-CMP exhibited emission enhancement via adsorption of water molecules, whereas the emission of ABH-CMP, which possesses free amine groups, decreased upon the addition of water molecules. The differences in the emission trends of BH-CMP and ABH-CMP in the presence of water molecules originate from the formation of different hydrogen-bonding networks in each CMP. The acylhydrazone-based CMPs were applied to the detection of nitroaromatic compounds. As a result, ABH-CMP in DMF exhibited high selectivity for 1,3,5-trinitrotoluene (TNT) over other nitroaromatic compounds nitrobenzene, 1-chloro-4-nitrobenzene, 2,3-dichloronitrobenzene, and 2,4-dinitrotoluene.