The "lead" in a pencil is actually made of graphite, a mineral composed of pure carbon atoms arranged in a hexagonal structure. The hexagonal arrangement of carbon atoms in graphite makes it a good conductor of electricity, which is why it can be used to write.