Matter consists of both positively and negatively charged particles. A material which has the same amount of positive and negative charges is electrically neutral. An object gets charged when these charged particles get transferred from one body to another leading to an excess of a certain kind of charged particles.