Static electricity
All matter is made uof atoms and most matter you come accross is electrically neutral.
electrons are tiny ,with a small mass
and rubbing togheter they gain enough energy to leave the their atoms
attach to others moving to different surface.
the first object has more protons than electrons
while the object with more electrons gets a negative charge, creating charge imbalance
Like charges repel each other
However,nature tends to balance so the mobile electrons go where they are most needed to restore the balance.
is called static discharge and it's a spark
some materials are conductors
like metals, thaht tend to lose electrons
other are insulators
like glass rubber and plastics