Static electricity is the result of electric charge accumulation on insulators, caused by friction between materials which leads to the transfer of electrons. When two insulators are rubbed together, one gains a negative charge while the other becomes positively charged. The behavior of these charges includes repulsion between like charges and attraction between opposite charges.