Static electricity occurs when materials are rubbed together, causing an excess of electric charges on their surfaces. This can result in attraction or repulsion between objects and even sparks. The triboelectric series lists materials based on their tendency to gain or lose electrons when in contact with another material. Sparks require the presence of both conductors and insulators and occur when a large enough potential difference builds up to allow a discharge of electrons across a gap.