what happens when you try moving an electron from the metal to the non metal

When you try to move an electron from a metal to a nonmetal, it typically results in the formation of an ionic bond between the two elements.

In an ionic bond, the metal loses one or more electrons to form a positively charged ion (cation), while the nonmetal accepts these electrons to form a negatively charged ion (anion). This transfer of electrons occurs due to the difference in electronegativity between the two elements. Metals tend to have low electronegativity, meaning they have a lower affinity for electrons, while nonmetals have high electronegativity and a stronger pull for electrons.

The electron transfer allows both the cation and anion to achieve a more stable electronic configuration, similar to the noble gases, which generally have full valence electron shells. The resulting positive and negative charges attract each other, creating an ionic bond. The metal and nonmetal ions are then held together in a solid ionic compound, such as table salt (sodium chloride, NaCl) or calcium carbonate (CaCO3).