Rubbing produces charges of equal magnitude but of opposite nature on the two bodies because charges are created in pairs. This phenomenon of charging is called charging by friction. The net charge on the system of two rubbed bodies is zero. This is because equal amount of opposite charges annihilate each other. When a glass rod is rubbed with a silk cloth, opposite nature charges appear on both the bodies. This phenomenon is in consistence with the law of conservation of energy. A similar phenomenon is observed with many other pairs of bodies.