Filamentous cable bacteria conduct electrical currents over centimeter distances through fibers embedded in their cell envelope. Here, Boschker et al. show that the fibers consist of a conductive core containing nickel proteins that is surrounded by an insulating protein shell.