The structure of diamond and graphite is respectively:
3D-tetrahedral, hexagonal layered
Each C-atom in diamond is bonded covalently to four C-atoms, and this repitition produces a three-dimensional structure.
Graphite is composed of flat two- dimensional sheets or layers of the carbon atoms. Each sheet or layer consists of flat hexagonal rings of C-atoms. In each layer, each C-atom is linked to three C-atoms by C-C covalent bond. The layers are joined together by weak forces of attraction known as van der Waals forces.