Static electricity is the build-up of electric charge on an object. It occurs when electrons are transferred from one object to another, leaving an imbalance of charges. This can cause sparks or shocks when charges are equalized. Static cling and lightning are both examples of static electricity. Safety tips to prevent shocks or fires from static electricity include grounding oneself before pumping gas and staying inside during thunderstorms.