Static electricity is caused by an imbalance of electric charges, usually electrons, on the surface of materials. When certain materials are rubbed together, electrons can be transferred, leaving one material with an excess of electrons and a negative charge, and the other with a deficit of electrons and a positive charge. These imbalanced charges attract or repel each other, causing phenomena like balloons sticking to walls or hair standing on end. Lightning is a large-scale example of static electricity, where the bottoms of thunderclouds become negatively charged and the tops positively charged, until a discharge occurs as lightning.