Normally, materials are electrically neutral, however when they come in intimate contact and are separated one gets a positive charge while the other gets a negative charge. The intensity of the charge depends on the nature of the 2 materials, the rapidity of separation and the insulating property of the air at the time of separation.