Increasing environmental pollution, shortage of efcient energy conversion and storage devices and the depletion of fossil fuels have triggered the research community to look for advanced multifunctional materials suitable for diferent energy-related applications. Herein, we have discussed a novel and facile synthesis mechanism of such a carbon-based nanocomposite along with its energy and environmental applications. In this present work, nitrogen-doped carbon selfassembled into ordered mesoporous structure has been synthesized[1].