In graphite, each carbon atom is bonded with three other carbon atoms to form hexagonal rings which join together by weak Van der Waal forces to form layers. Due to the weak force, these layers can slide over each other, and therefore, graphite can be used as a lubricant.
It is used as a lubricant in the form of graphite powder or mixed with petroleum jelly or with any lubricant oil to form graphite grease.