Experimental measurement and theoretical analysis of THz spectrum for five different explosives and related compounds are introduced. The refractive index and absorption coefficient of the samples are measured in the region of 0.2-2.6 terahertz by time-domain spectroscopy. The simulated spectrum of [gamma]-HNIW is in agreement with the experimental data.