Generally the positive charge of the nucleus is equal to the negative charge of the electrons, and the positive and negative charges are balanced. But if the electrons by external forces and out of orbit, resulting in an unbalanced distribution of electrons, when two different objects are in contact with each other and rubbing each other, a body of electrons transferred to another object, because of the lack of electrons and positively charged, and another body to get some of the remaining electrons of the object and negatively charged, the object on the electrostatic.
The so-called static electricity is a charge at rest or a charge that does not flow (a flowing charge forms an electric current). When the charge gathered on an object or surface when the formation of static electricity, and the charge is divided into positive and negative charge two, that is to say, the phenomenon of electrostatic electricity is also divided into two that is, positive and negative static electricity.