Many metals form ionic bonds when they react with non-metals. Compounds so formed are known as ionic compounds.
Ions: Positive or negative charged atoms are known as ions. Ions are formed because of loss or gain of electrons. Atoms form ion to obtain the electronic configuration of nearest noble gas, this means to obtain stable configuration.