What is static electricity?

Static electricity is an imbalance of electric charges within or on the surface of a material. It occurs when there is a buildup of electric charge on the surface of an object, causing that object to attract or repel other objects with opposite or like charges. This imbalance of charges can result in a sudden discharge of electricity, commonly seen as a spark or shock. Static electricity is typically generated by friction between two materials or by contact and separation of materials.