While there are strong covalent bonds between carbon atoms in each layer, there are only weak forces between layers. This allows layers of carbon to slide over each other in graphite. On the other hand, in diamond each carbon atom is the same distance to each of its neighboring carbon atoms.