Static electricity is the buildup of electric charge on an object. When two objects are rubbed together, electrons can be transferred from one object to the other, creating a difference in electrical charge. This can cause the objects to attract or repel each other. Static electricity is often seen in everyday life, such as when you get a shock after touching a metal doorknob or when your hair stands on end after you take off a wool hat.