The detection of trace explosives is important for forensic, military, and homeland security applications. Detection of widely used nitroaromatic explosives (trinitrotoluene [TNT], 2,4-dinitrotoluene [DNT], picric acid [PA]) was carried out using photoluminescent metallole-containing polymers. The method of detection is through the quenching of fluorescence of thin films of the polymer, prepared by spray coating organic solutions of the polymer, by the explosive analyte. Visual quenching of luminescence (lambda(em) approximately 400-510 nm) in the presence of the explosive is seen immediately upon illumination with near-UV light (lambda(ex)=360 nm). Detection limits were observed to be as low as 5 ng for TNT, 20 ng for DNT, and 5 ng for PA. In addition, experiments with normal production line explosives and their components show that this technology is also able to detect composition B, Pyrodex, and nitromethane. This method offers a convenient and sensitive method of detection of trace nitroaromatic explosive residue.