During combination, the metal transfers its valence electrons to the nonmetal, and because atoms are electrically neutral, the metal, after giving away its valence electrons, becomes positively charged, and the nonmetal, after accepting the electrons, becomes negatively charged.