Increasing the strength and number of hydrogen bonds of azoles and expanding the π–π stacking area are the key factors to improve the thermal stability, which provides a valuable way for developing energetic materials with higher energy and thermal stability.