Two Faces of Carbon

Graphite is silvery black, soft, and an electrical conductor. Diamonds are transparent, the hardest natural substances known, and electrical insulators. Both are just carbon. What's the deal?