Rubbing two materials against each other can lead to charge transfer, either electrons or ions. The energy required for this contributes to the friction. In addition, sliding can cause a build-up of electrostatic charge, which can be hazardous if flammable gases or vapours are present. When the static build-up discharges, explosions can be caused by ignition of the flammable mixture.