Static electricity is the superficial and localized accumulation of electric charges on a body. It can occur both in a conductive material and in an insulator. It was discovered centuries ago that certain types of materials would mysteriously attract one another being rubbed together.
For example: after rubbing a piece of silk against a piece of glass, the silk and glass would tend to stick together. This phenomenon became even more interesting when it was discovered that identical materials, after having been rubbed with their respective cloths, always repelled each other. The fact that there was more than one type of change manifested in these materials was evident by the fact that there were two types of forces produced: attraction and repulsion.