Nonmetals possess high electronegativity (ability to attract electrons in a chemical bond) while metals have low electronegativity. Due to high difference in their electronegativities metals frequently form ionic compounds with non-metals.  In these ionic compounds the negative charge is on the nonmetal (anion) and the positive charge is on the metal (cation).