While graphite is made of carbon, like diamonds, its structure is different. Graphite has layers of carbon atoms arranged in a hexagonal lattice, and these layers are only weakly bonded to each other. This structure allows electrons to move freely within the layers, making graphite a good conductor of electricity.
Let me know if you'd like to know more about the properties of graphite or other conductors!