Graphite is a giant covalent structure in which carbon atoms are arranged in hexagons, with covalent bonds between the atoms and weak forces between the layers. Each carbon atom is covalently bonded to 3 others, so one electron per carbon atom is unbonded and delocalised and free to move between the layers. It is also three-dimensional.