A method for fabricating a three-dimensional carbon structure (4) is disclosed. A mould (1) defining a three-dimensional shape is provided, and natural protein containing fibres are packed in the mould (1) at a predetermined packing density. The packed natural protein containing fibre structure (3) undergoes pyrolysis, either while still in the mould (1) or after having been removed from the mould (1). Thereby a three-dimensional porous and electrically conducting carbon structure (4) having a three-dimensional shape defined by the three-dimensional shape of the mould (1) and a porosity defined by the packing density of the packed natural protein containing fibre structure (3) is obtained. The carbon structure (4) is well suited for use as a scaffold for tissue engineering, or for material for batteries, fuel cells, supercapacitors, sorbents for separation processes, gas storage, supports for many important catalysts, etc.