The invention provides a nitrogen-doped porous vertical graphene nanowall array. A compact coating layer is formed by means of nickel hydroxide serving as a template and the self-assembly property of dopamine, then high-temperature carbonization is conducted to prepare a nitrogen-doped vertical graphene nanowall array material, in-situ functional modification is conducted on the basis, the compound functional material loaded with noble metal nanoparticles, noble metal alloy nanoparticles, metal oxides, metal sulfide, metal phosphide, conductive polymers and the like is obtained, and application in the fields of supercapacitors, lithium ion batteries, water decomposition, electrochemical catalysis, enzyme-free biosensors and the like is explored.