Diamond is an allotrope of carbon. Graphite is carbon too—the dramatic difference comes from how the carbon atoms are bonded and arranged, not from a different element.