A 3D cross-network Co 3 O 4−x N x nanostructure is obtained from the cobalt−alanine complex (Co(C 3 H 5 O 2 N) 2 ) by amino acid self-assembly and subsequent pyrolysis. In this process, Co(C 3 H 5 O 2 N) 2 forms a 2D sheet structure by intermolecular selfassembly; then, the 2D sheet structure self-assembles to form a 3D cross-network nanostructure, which undergoes pyrolysis to form Co 3 O 4−x N x . The resulting Co 3 O 4−x N x has a 3D cross-network nanostructure with a high specific surface area and suitable pore diameter. The unique 3D cross-network nanostructure of Co 3 O 4−x N x can supply a large amount of active sites, and the pores can promote ion migration, which can reduce volume expansion during cycling. Importantly, the amino acid self-assembly strategy is performed at the molecular level so that the N atoms in alanine (C 3 H 7 O 2 N) migrate in the molecule to form in-situ doping and simultaneously create defects. Defect engineering can facilitate rapid transport of electrons in the electrode, further effectively improving the conductivity of the material, which has been further proved by density functional theory calculations. N-doping can also improve the hydrophilicity of the material. Hence, the Co 3 O 4−x N x -300 electrode shows high specific capacitance (666 Fg −1 at 1 Ag −1 ) and outstanding cycling stability (a capacitance retention rate of 74.1% after 10,000 cycles). In addition, an all-solid-state asymmetric supercapacitor based on the Co 3 O 4−x N x -300 cathode and active carbon anode displays a high energy density of 33.2 W h kg −1 at 751.1 W kg −1 and long cycling stability with a capacitance loss of 15.8% after 5000 cycles. All the experiment results show that the Co 3 O 4−x N x material has great potential as a supercapacitor material. KEYWORDS: supercapacitor, amino acid self-assembly, Co 3 O 4−x N x , defect-engineered, all-solid-state asymmetric device