We have performed ab initio molecular dynamics simulations to study coupling effects of temperature (534–873 K) and pressure (1–20 GPa) on the initiation mechanisms and subsequent chemical decompositions of nitramine explosive 1,3,5,7-tetranitro-1,3,5,7-tetrazocane (HMX).