Nitrogen-rich heterocycles represent a unique class of energetic frameworks featuring high heats of formation and high nitrogen content, which have generated considerable research interest in the field of high energy density materials (HEDMs). Although traditional C-functionalization methodology of aromatic hydrocarbons has been fully established, studies on N-functionalization strategies of nitrogen-containing heterocycles still have great potential to be exploited by virtue of forming diverse N-X bonds (X = C, N, O, B, halogen, etc.), which are capable of regulating energy performance and the stability of the resulting energetic compounds. In this sense, versatile N-functionalization of N-heterocyclic frameworks offers a flexible strategy to meet the requirements of developing new-generation HEDMs. In this Account, the role of strategic N-functionalization in designing new energetic frameworks, including the formation of N-C, N-N, N-O, N-B and N-halogen bonds, is emphasized. In the family of N-functionalized HEDMs, energetic derivatives, by virtue of forming N-C bonds, are the most widely used type due to the good nucleophilic capacity of most heterocyclic backbones. Although introduction of carbon tends to decrease energetic performance, significant improvement in material sensitivity makes this strategy attractive for safety concerns. More importantly, most "explosophores" can be readily introduced into the N-C linkage, thus providing a promising route to various HEDMs. Formation of additional N-N bonds typically gives rise to higher heats of formation, implying the potential enhancement in detonation performance. In many cases, the increased hydrogen bonding interactions within N-N functionalized heterocycles also improve thermal stability accordingly. Introduction of a single N,N'-azo bridge into several azole moieties leads to an extended nitrogen chain, demonstrating a new strategy for designing high-nitrogen compounds. The strategy of N-O functionalization has become an increasingly efficient tool for exploring new HEDMs with both high energy and low sensitivity. As a highly dense building block, introduction of oxygen not only improves density significantly but also gives rise to a better oxygen balance. Furthermore, the N-O functionalized strategy is highly suitable for a broad variety of N-heterocycles including five-membered azoles and six-membered azines. Newly explored N-halogen and N-B functionalization strategies have endowed the resulting HEDMs with some new energetic characteristics. Typical examples include the N-halogenated fused triazole and FOX-7 as potential hypergolic oxidizers with very short ignition delay times. In addition, some exploratory studies of N-B functionalized heterocycles have expanded energetic applications as hypergolic ionic liquids, green pyrotechnic colorants, and high-oxygen carriers. Overall, flexible N-functionalization methodologies involving different N-X bond formation have not only provided an efficient approach to diverse energetic ingredients but also expanded...