Polyhedral oligosilsesquioxanes are assembled into hierarchically porous carbons.
The carbons contain uniform micropores interconnected with highly ordered mesopores.
Nitrogen functionalities can spontaneously be incorporated into the carbon materials.
The porous carbons have desired structural characteristics towards supercapacitors.