static electricity is produced when
How to Produce Static Electricity. Static electricity occurs when an electrical charge builds up due to friction between two different objects, usually items that are not good at conducting electricity. You've probably had static electricity in your clothes and hair when they were clingy. The following shows you a few ways to produce static electricity.