1. Valence electrons from the metal and nonmetal collide. 2. An electron is exchanged, with the metal atom losing an electron to form a cation and the nonmetal gaining an electron to form an anion. 3. This results in the formation of two ions - a positively charged cation and a negatively charged anion. 4. The ions are then held together by electrostatic attraction between the positive and negative charges.