The structure of diamond and graphite is respectively:
3D-Tetrahedral, hexagonal layered
Since each C-atom in diamond forms four covalent bonds, it produces a repetitive tetrahedral three-dimensional structure using only covalent bonds.
Graphite is composed of flat two- dimensional sheets or layers of the carbon atom. Each sheet or layer consists of flat hexagonal rings of C-atoms and in each layer, each C-atom is linked to three C-atoms by C-C covalent bond. The layers are joined together by weak van der waals forces.